mirror of
https://github.com/DCsunset/taskwarrior-webui.git
synced 2025-08-19 16:03:06 +02:00
fix(frontend): apply settings upon change
This commit is contained in:
parent
b62255f928
commit
28540a51f4
1 changed files with 7 additions and 2 deletions
|
@ -64,7 +64,6 @@ export default defineComponent({
|
|||
}
|
||||
};
|
||||
setAutoRefresh();
|
||||
watch(() => context.root.$store.state.settings, setAutoRefresh);
|
||||
|
||||
// Auto Sync
|
||||
let syncInterval: NodeJS.Timeout | null = null;
|
||||
|
@ -79,7 +78,13 @@ export default defineComponent({
|
|||
}
|
||||
};
|
||||
setAutoSync();
|
||||
watch(() => context.root.$store.state.settings, setAutoSync);
|
||||
|
||||
// Update settings
|
||||
watch(() => context.root.$store.state.settings, () => {
|
||||
setAutoSync();
|
||||
setAutoRefresh();
|
||||
context.root.$vuetify.theme.dark = context.root.$store.state.settings.dark;
|
||||
});
|
||||
|
||||
const mode = ref('Tasks');
|
||||
const allModes = ['Tasks', 'Projects'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue