ledger uuid
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user