|
11 | 11 | aria-label={$_('buttons.remove')} |
12 | 12 | class="btn btn-link" |
13 | 13 | type="button" |
14 | | - on:click={onRemoveClick} |
| 14 | + onclick={onRemoveClick} |
15 | 15 | title={$_('buttons.remove')} |
16 | 16 | class:disabled={removing}> |
17 | 17 | <i class="fas fa-trash"></i> |
|
27 | 27 | <i class="fas fa-store"></i> |
28 | 28 | </a> |
29 | 29 | {/if} |
| 30 | + <button |
| 31 | + type="button" |
| 32 | + class="btn btn-link position-relative" |
| 33 | + title={$_('pages.themes.update-available')} |
| 34 | + aria-label={$_('pages.themes.update-available')} |
| 35 | + onclick={() => goto(`${base}/settings/updates`)}> |
| 36 | + <i class="fas fa-sync"></i> |
| 37 | + <span |
| 38 | + class="position-absolute top-50 start-100 translate-middle badge rounded-pill bg-secondary p-1"> |
| 39 | + <span class="visually-hidden">{$_('pages.themes.update-available')}</span> |
| 40 | + </span> |
| 41 | + </button> |
30 | 42 | {#if theme.running} |
31 | 43 | <button |
32 | 44 | class="btn btn-danger" |
33 | 45 | type="button" |
34 | 46 | aria-label={$_('buttons.stop')} |
35 | | - on:click={onStopClick} |
| 47 | + onclick={onStopClick} |
36 | 48 | class:disabled={stoping}> |
37 | 49 | <i class="fas fa-stop"></i> |
38 | 50 | <span class="d-lg-inline d-none ms-2">{$_('buttons.stop')}</span> |
39 | 51 | </button> |
40 | 52 | {/if} |
41 | 53 | {#if !theme.running && theme.active} |
42 | | - <button |
43 | | - class="btn btn-secondary" |
44 | | - type="button" |
45 | | - on:click={onStartClick} |
46 | | - class:disabled={stoping}> |
| 54 | + <button class="btn btn-secondary" type="button" onclick={onStartClick} class:disabled={stoping}> |
47 | 55 | <i class="fas fa-play"></i> |
48 | 56 | <span class="d-lg-inline d-none ms-2">{$_('buttons.start')}</span> |
49 | 57 | </button> |
50 | 58 | {/if} |
51 | 59 | {#if !theme.active} |
52 | | - <button class="btn btn-secondary" on:click={activate} disabled={activating}> |
| 60 | + <button class="btn btn-secondary" onclick={activate} disabled={activating}> |
53 | 61 | {$_('buttons.activate')}{#if activating}<i class="fas fa-spinner fa-spin ms-2"></i>{/if} |
54 | 62 | </button> |
55 | 63 | {/if} |
|
222 | 230 | <script> |
223 | 231 | import { getContext } from 'svelte'; |
224 | 232 | import { _ } from 'svelte-i18n'; |
| 233 | + import tooltip from '$lib/tooltip.util'; |
225 | 234 |
|
226 | 235 | import { goto, invalidate } from '$app/navigation'; |
227 | 236 | import { base } from '$app/paths'; |
|
0 commit comments