From f7e1d8726b8e20b807756fe89b8c17b5f7b687ed Mon Sep 17 00:00:00 2001 From: Peter Daniel Date: Sun, 2 Jul 2023 21:06:57 +0100 Subject: [PATCH] make API token config field required --- companion/HELP.md | 4 ++++ index.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/companion/HELP.md b/companion/HELP.md index 09c22f8..508a670 100644 --- a/companion/HELP.md +++ b/companion/HELP.md @@ -52,5 +52,9 @@ Add variables for timerId and timerDescription ### Version 2.0.0 Updated for Companion version 3 + Updated for toggl API version 9 +### Version 2.0.1 +Make the API token config field required + diff --git a/index.js b/index.js index 3063c0b..75647b4 100644 --- a/index.js +++ b/index.js @@ -25,6 +25,7 @@ class toggltrack extends InstanceBase { id: 'apiToken', label: 'Personal API Token from your Toggl user profile (required)', width: 12, + required: true, default: '', }, { @@ -32,6 +33,7 @@ class toggltrack extends InstanceBase { id: 'alwaysStart', label: 'Always start a new timer even if there is one already running', width: 12, + required: false, default: false, }, ]