syncthing/next-gen-gui/src/app/services
Jakob Borg 22e44642a0
next-gen-gui: Add button to restore default theme (#7433)
This adds a button in the top right that changes the config back to the
default theme.

Code wise, it takes the header that was previously a part of the
dashboard component and moves it to the app component, and then adds the
button there. Possibly the header should be a component of it's own, but
that's more of refactor that can happen separately I think.

The config change uses the new config API to just patch the relevant
setting.

I'm not doing an automatic reload because 1) I don't want to figure out
how to do it correctly and 2) this doesn't work reliably anyway, as
for example the current gen GUI does a reload and ends up with
connection refused as the API service is still reloading...
2021-03-08 12:54:08 +01:00
..
cookie.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
cookie.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
db-completion.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
db-completion.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
db-status.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
db-status.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
device.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
device.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
filter.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
filter.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
folder.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
folder.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
in-memory-config-data.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
in-memory-config-data.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
message.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
message.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
progress.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
progress.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
request-cache.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
request-cache.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
system-config.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
system-config.service.ts next-gen-gui: Add button to restore default theme (#7433) 2021-03-08 12:54:08 +01:00
system-connections.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
system-connections.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
system-status.service.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
system-status.service.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00