Skip to content

Commit 0b2f72c

Browse files
committed
update tasks link
1 parent a010f26 commit 0b2f72c

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

src/lib/backends/google-tasks-config.js

Whitespace-only changes.

src/lib/components/Tasks.svelte

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,30 @@
266266
<div class="error">{error}</div>
267267
{:else}
268268
<div class="widget-header">
269-
<a
270-
href="https://todoist.com/app"
271-
target="_blank"
272-
rel="noopener noreferrer"
273-
>
274-
<span class="bright">{taskCount}</span> task{taskCount === 1
275-
? ''
276-
: 's'}
277-
</a>
269+
{#if settings.taskBackend === 'todoist'}
270+
<a
271+
href="https://todoist.com/app"
272+
target="_blank"
273+
rel="noopener noreferrer"
274+
>
275+
<span class="bright">{taskCount}</span>
276+
task{taskCount === 1 ? '' : 's'}
277+
</a>
278+
{:else if settings.taskBackend === 'google-tasks'}
279+
<a
280+
href="https://tasks.google.com"
281+
target="_blank"
282+
rel="noopener noreferrer"
283+
>
284+
<span class="bright">{taskCount}</span>
285+
task{taskCount === 1 ? '' : 's'}
286+
</a>
287+
{:else}
288+
<span>
289+
<span class="bright">{taskCount}</span>
290+
task{taskCount === 1 ? '' : 's'}
291+
</span>
292+
{/if}
278293
<AddTask
279294
bind:value={newTaskContent}
280295
bind:parsed={parsedDate}

0 commit comments

Comments
 (0)