fix: List item UI improvements
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import type { LocalList } from '@/database/db'
|
||||
import BaseModal from '@/components/BaseModal.vue'
|
||||
import ConfirmDeleteModal from '@/components/ConfirmDeleteModal.vue'
|
||||
|
||||
defineProps<{
|
||||
const props = defineProps<{
|
||||
list: LocalList
|
||||
}>()
|
||||
|
||||
@@ -21,32 +21,11 @@ function handleConfirm() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<BaseModal
|
||||
:title="`Delete "${list.name}"?`"
|
||||
title-id="delete-modal-title"
|
||||
<ConfirmDeleteModal
|
||||
:title="`Delete "${props.list.name}"?`"
|
||||
description="Are you sure you want to delete this list? This action cannot be undone and all items in this list will be deleted."
|
||||
confirm-label="Delete list"
|
||||
@close="handleClose"
|
||||
>
|
||||
<p class="modal-description">
|
||||
Are you sure you want to delete this list? This action cannot be undone and all items in this
|
||||
list will be deleted.
|
||||
</p>
|
||||
|
||||
<template #footer>
|
||||
<button type="button" class="btn btn-secondary cancel-btn" @click="handleClose">
|
||||
Cancel
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger confirm-delete-btn" @click="handleConfirm">
|
||||
Delete list
|
||||
</button>
|
||||
</template>
|
||||
</BaseModal>
|
||||
@confirm="handleConfirm"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.modal-description {
|
||||
font-size: 0.85rem;
|
||||
color: var(--c-text-soft);
|
||||
margin-bottom: 1.25rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user