Skip to content

Commit

Permalink
fix: paste options not getting selected
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMyst committed Jan 17, 2025
1 parent 89bc309 commit 410e763
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions client/src/lib/PasteOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,21 @@
oncreatePaste
}: Props = $props();
const onEncryptClick = () => {
encrypt = !encrypt;
};
const onPrivateClick = () => {
isPrivate = !isPrivate;
if (isPrivate) {
pinned = false;
anonymous = false;
}
};
const onPinClick = () => {
pinned = !pinned;
if (pinned) {
isPrivate = false;
anonymous = false;
}
};
const onAnonymousClick = () => {
anonymous = !anonymous;
if (anonymous) {
isPrivate = false;
pinned = false;
Expand All @@ -59,13 +49,7 @@
class:checked={encrypt}
use:tooltip
>
<input
type="checkbox"
name="encrypt"
id="encrypt"
onchange={onEncryptClick}
bind:checked={encrypt}
/>
<input type="checkbox" name="encrypt" id="encrypt" bind:checked={encrypt} />
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="icon">
<title>Key Icon</title>
<path
Expand Down

0 comments on commit 410e763

Please sign in to comment.