This commit is contained in:
peter
2022-07-15 23:23:19 +00:00
parent 0ea29e0b3e
commit cb54753498
2 changed files with 14 additions and 1 deletions

View File

@@ -24,6 +24,10 @@ Companion only knows the ID of timers it has started, if a timer is started from
Attempt to stop the current timer. This will fail if Companion doesn't know the ID of the currently running timer. Attempt to stop the current timer. This will fail if Companion doesn't know the ID of the currently running timer.
**Refresh Project List**
Retrives the current list of projects from the toggl server. This action runs automatically when Companion starts and when the module is enabled.
## Presets ## Presets
Presets are available for **Start Timer** and **Stop Timer**. The **Stop Timer** preset also includes both the **Get Current Timer** and **Stop Current Timer** actions to ensure reliable operation. Presets are available for **Start Timer** and **Stop Timer**. The **Stop Timer** preset also includes both the **Get Current Timer** and **Stop Current Timer** actions to ensure reliable operation.
@@ -38,3 +42,5 @@ Fix broken link
### Version 1.0.2 ### Version 1.0.2
Allow a project to be specified when starting a new timer button Allow a project to be specified when starting a new timer button
Add action to refresh project list

View File

@@ -150,6 +150,9 @@ instance.prototype.actions = function (system) {
stopCurrentTimer: { stopCurrentTimer: {
label: 'Stop Current Timer', label: 'Stop Current Timer',
}, },
refreshProjects: {
label: 'Refresh Project List',
},
}) })
} }
@@ -203,6 +206,10 @@ instance.prototype.action = function (action) {
self.getCurrentTimer() self.getCurrentTimer()
break break
} }
case 'refreshProjects': {
self.getWorkspace()
break
}
default: default:
break break
} }