diff --git a/frontend/src/lib/components/AppConnect.svelte b/frontend/src/lib/components/AppConnect.svelte index dc905fd0e8..7479b4d79d 100644 --- a/frontend/src/lib/components/AppConnect.svelte +++ b/frontend/src/lib/components/AppConnect.svelte @@ -8,6 +8,10 @@ img: 'discord_webhook.png', instructions: 'Server Settings -> Integration -> Webhooks', key: 'webhook_url' + }, + toggl: { + img: 'toggl_connect.png', + instructions: 'Go to https://track.toggl.com/profile -> API Token' } } @@ -129,14 +133,15 @@ }) ) } + const description = `${manual ? 'Token' : 'OAuth token'} for ${resource_type}` await VariableService.createVariable({ workspace: $workspaceStore!, requestBody: { path, value, is_secret: true, - description: `OAuth token for ${resource_type}`, - is_oauth: true, + description, + is_oauth: !manual, account: account } }) @@ -148,8 +153,8 @@ resource_type, path, value: resourceValue, - description: `OAuth token for ${resource_type}`, - is_oauth: true + description, + is_oauth: !manual } }) dispatch('refresh') diff --git a/frontend/src/lib/components/IconedResourceType.svelte b/frontend/src/lib/components/IconedResourceType.svelte index e9536f5da4..ae55fc41bc 100644 --- a/frontend/src/lib/components/IconedResourceType.svelte +++ b/frontend/src/lib/components/IconedResourceType.svelte @@ -1,18 +1,19 @@ + + diff --git a/frontend/static/toggl_connect.png b/frontend/static/toggl_connect.png new file mode 100644 index 0000000000..e43cfbaa59 Binary files /dev/null and b/frontend/static/toggl_connect.png differ