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