mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
new selfhosted version
This commit is contained in:
19
dashboard/components/dialog/DeleteSnapshot.vue
Normal file
19
dashboard/components/dialog/DeleteSnapshot.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script lang="ts" setup>
|
||||
|
||||
const emits = defineEmits<{ (event: 'confirm'): void }>();
|
||||
const props = defineProps<{ data: { snapshot: GenericSnapshot } }>();
|
||||
const { close } = useDialog();
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col gap-4">
|
||||
<div>
|
||||
Are you sure to delete the snapshot: {{ props.data.snapshot.name }}?
|
||||
</div>
|
||||
<div class="flex justify-end gap-2">
|
||||
<Button variant="secondary" @click="close()"> Back </Button>
|
||||
<Button variant="destructive" @click="emits('confirm')"> Delete </Button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user