-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fb91d3
commit 4abe653
Showing
8 changed files
with
98 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script lang="ts"> | ||
import Modal from './Modal.svelte' | ||
import Button from './Button.svelte' | ||
import { save_view_options, view_options } from '@/lib/data' | ||
export let on_close: () => void | ||
let auto_update = !view_options.noAutoUpdate | ||
function save() { | ||
view_options.noAutoUpdate = !auto_update | ||
save_view_options(view_options) | ||
on_close() | ||
} | ||
</script> | ||
|
||
<Modal on_cancel={on_close} cancel_on_escape form={save} title="Settings"> | ||
<div class="w-96 text-sm"> | ||
<label class="flex items-center gap-2"> | ||
<input | ||
type="checkbox" | ||
class="size-3.5 border-gray-300 bg-gray-100 text-blue-600 outline-offset-2 outline-blue-500 outline-solid focus-visible:outline" | ||
bind:checked={auto_update} | ||
/> | ||
Automatically check for updates on startup | ||
</label> | ||
</div> | ||
<svelte:fragment slot="buttons"> | ||
<Button secondary on:click={on_close}>Cancel</Button> | ||
<Button type="submit" on:click={save}>Save</Button> | ||
</svelte:fragment> | ||
</Modal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters