Compare commits
2 Commits
77aa277347
...
7ed0388acb
| Author | SHA1 | Date | |
|---|---|---|---|
| 7ed0388acb | |||
| 3aa0c7d77a |
@@ -61,7 +61,7 @@ onBeforeUnmount(() => window.removeEventListener('beforeunload', handleBeforeUnl
|
|||||||
Nein, bleiben
|
Nein, bleiben
|
||||||
</button>
|
</button>
|
||||||
<button @click="confirmLeave" class="btn-confirm">
|
<button @click="confirmLeave" class="btn-confirm">
|
||||||
Ja, verwerfen
|
Ja, verlassen
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const router = useRouter()
|
|||||||
const modal = useModal()
|
const modal = useModal()
|
||||||
const auth = useAuthStore()
|
const auth = useAuthStore()
|
||||||
|
|
||||||
|
const guard = ref(true)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1456,6 +1456,8 @@ const closeDocument = async () => {
|
|||||||
|
|
||||||
await useFiles().uploadFiles(fileData, [file])
|
await useFiles().uploadFiles(fileData, [file])
|
||||||
|
|
||||||
|
guard.value = false
|
||||||
|
|
||||||
await router.push(`/createDocument/show/${itemInfo.value.id}`)
|
await router.push(`/createDocument/show/${itemInfo.value.id}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3144,7 +3146,7 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
|||||||
</UTabs>
|
</UTabs>
|
||||||
<UProgress animation="carousel" v-else/>
|
<UProgress animation="carousel" v-else/>
|
||||||
</UDashboardPanelContent>
|
</UDashboardPanelContent>
|
||||||
<PageLeaveGuard :when="true"/>
|
<PageLeaveGuard :when="guard"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user