@@ -84,7 +84,9 @@ export default {
status: this.value,
id: this.id,
beforeRedirect: async () => {
- await this.beforeRedirect()
+ if (_this.beforeRedirect) {
+ await _this.beforeRedirect()
+ }
},
cancel() {
_this.syncLabels([])
@@ -1,6 +1,11 @@
<template>
<section class="tab-actions safe-area-inside-bottom bg-white">
- <ActionCollection class="tab-action" :id="id" @syncLabels="syncLabels" />
+ <ActionCollection
+ class="tab-action"
+ :id="id"
+ @syncLabels="syncLabels"
+ :beforeRedirect="beforeLeavePage"
+ />
<QuickMonitor
class="tab-action"
:id="id"