diff --git a/front-end/src/renderer/pages/CreateTransactionGroup/CreateTransactionGroup.vue b/front-end/src/renderer/pages/CreateTransactionGroup/CreateTransactionGroup.vue index 781d3d82c..e47444a52 100644 --- a/front-end/src/renderer/pages/CreateTransactionGroup/CreateTransactionGroup.vue +++ b/front-end/src/renderer/pages/CreateTransactionGroup/CreateTransactionGroup.vue @@ -50,7 +50,6 @@ const transactionGroupProcessor = ref(n const file = ref(null); const wantToDeleteModalShown = ref(false); const showAreYouSure = ref(false); -const groupValidStart = ref(new Date()); const groupEmpty = computed(() => transactionGroup.groupItems.length == 0); @@ -157,7 +156,7 @@ async function handleSignSubmit() { } try { - transactionGroup.updateTransactionValidStarts(groupValidStart.value); + transactionGroup.updateTransactionValidStarts(transactionGroup.groupValidStart); const ownerKeys = new Array(); for (const key of user.keyPairs) { ownerKeys.push(PublicKey.fromString(key.public_key)); @@ -296,7 +295,7 @@ async function handleOnFileChanged(e: Event) { } function updateGroupValidStart(newDate: Date) { - groupValidStart.value = newDate; + transactionGroup.groupValidStart = newDate; } /* Functions */ @@ -438,9 +437,9 @@ onBeforeRouteLeave(async to => { >Group Valid Start - Local time
diff --git a/front-end/src/renderer/stores/storeTransactionGroup.ts b/front-end/src/renderer/stores/storeTransactionGroup.ts index 698eca150..e78433c05 100644 --- a/front-end/src/renderer/stores/storeTransactionGroup.ts +++ b/front-end/src/renderer/stores/storeTransactionGroup.ts @@ -32,6 +32,7 @@ export interface GroupItem { const useTransactionGroupStore = defineStore('transactionGroup', () => { /* State */ const groupItems = ref([]); + const groupValidStart = ref(new Date()); const description = ref(''); const sequential = ref(false); const modified = ref(false); @@ -73,6 +74,7 @@ const useTransactionGroupStore = defineStore('transactionGroup', () => { function clearGroup() { groupItems.value = []; + groupValidStart.value = new Date(); description.value = ''; sequential.value = false; modified.value = false; @@ -265,6 +267,7 @@ const useTransactionGroupStore = defineStore('transactionGroup', () => { clearGroup, groupItems, description, + groupValidStart, sequential, getRequiredKeys, editGroupItem,