File tree Expand file tree Collapse file tree 2 files changed +24
-9
lines changed
Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments