mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
add uninstall button
This commit is contained in:
parent
54d9a19a1c
commit
7b5afb8dd8
1 changed files with 9 additions and 0 deletions
|
|
@ -13,11 +13,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
existing,
|
||||
allowBetas,
|
||||
choose,
|
||||
uninstall,
|
||||
}: {
|
||||
releases: Versions;
|
||||
existing: ExistingVersions;
|
||||
allowBetas: boolean;
|
||||
choose: (version: string, existing: boolean, current?: string) => void;
|
||||
uninstall: (() => void) | null;
|
||||
} = $props();
|
||||
|
||||
let availableVersions = $derived(
|
||||
|
|
@ -77,6 +79,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
<EnumSelector bind:value={selected} choices={availableVersions} />
|
||||
</div>
|
||||
</Row>
|
||||
{#if uninstall != null}
|
||||
<Row class="centre m-3">
|
||||
<button class="btn btn-primary" onclick={uninstall}>
|
||||
{$tr.launcherUninstall()}
|
||||
</button>
|
||||
</Row>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
|
|
|
|||
Loading…
Reference in a new issue