ledger uuid

This commit is contained in:
Sirttas
2026-05-20 00:18:27 +02:00
parent 3ca0cf23f1
commit e137bec8dd
3 changed files with 36 additions and 38 deletions
+3 -5
View File
@@ -8,12 +8,10 @@ import LedgerLabel from "./LedgerLabel.vue";
import {PlusIcon, TrashIcon} from '@heroicons/vue/24/outline';
interface Props {
ledgerId?: number;
ledgerId?: string;
}
const props = withDefaults(defineProps<Props>(), {
ledgerId: 0
});
const props = defineProps<Props>();
const ledgersStore = useLedgersStore();
const {ledgers} = storeToRefs(ledgersStore);
@@ -51,7 +49,7 @@ const open = () => {
}
const canSave = computed(() => name.value.trim().length > 0);
const isCreating = computed(() => props.ledgerId === 0)
const isCreating = computed(() => props.ledgerId)
const title = computed(() => {
if (isCreating.value) {
return `Creating ${type.value === LedgerTypes.Main ? 'Main' : 'Combining'} Ledger`