mirror of
https://github.com/DCsunset/taskwarrior-webui.git
synced 2025-08-19 16:03:06 +02:00
feat(frontend): add highlighting for tasks
This commit is contained in:
parent
099543c0e1
commit
92dd18fbe0
3 changed files with 48 additions and 23 deletions
|
@ -43,13 +43,11 @@ export default defineComponent({
|
|||
|
||||
let interval: NodeJS.Timeout | null = null;
|
||||
const setAutoRefresh = () => {
|
||||
console.log('Setting inverval');
|
||||
if (interval)
|
||||
clearInterval(interval);
|
||||
const freq = +context.root.$store.state.settings.autoRefresh;
|
||||
if (freq > 0) {
|
||||
interval = setInterval(() => {
|
||||
console.log('Refreshing...');
|
||||
context.root.$store.dispatch('fetchTasks');
|
||||
}, +context.root.$store.state.settings.autoRefresh * 60000);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue