feat: Wire up new preferences and remove old settings
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 0s

This commit is contained in:
Jesse Wierzbinski 2025-04-30 18:03:14 +02:00
parent 412e49dfe2
commit 3ce71dd4df
No known key found for this signature in database
32 changed files with 213 additions and 340 deletions

View file

@ -19,9 +19,9 @@ defineProps<{
modalOptions: ConfirmModalOptions;
}>();
defineEmits<{
confirm: (result: ConfirmModalResult) => void;
cancel: () => void;
const emit = defineEmits<{
confirm: [result: ConfirmModalResult];
cancel: [];
}>();
const inputValue = ref<string>("");
@ -55,10 +55,10 @@ const inputValue = ref<string>("");
</div>
<DialogFooter>
<Button variant="outline" @click="() => $emit('cancel')">
<Button variant="outline" @click="() => emit('cancel')">
{{ modalOptions.cancelText }}
</Button>
<Button @click="() => $emit('confirm', {
<Button @click="() => emit('confirm', {
confirmed: true,
value: inputValue,
})">
@ -67,4 +67,4 @@ const inputValue = ref<string>("");
</DialogFooter>
</DialogContent>
</Dialog>
</template>
</template>