diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index 39cef2a4a..b18433d4e 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -102,7 +102,7 @@ onMounted(async () => { }); onBeforeRouteLeave((to, from, next) => { - if (hasChanges.value) + if (hasChanges.value && $props.observeFormChanges) quasar.dialog({ component: VnConfirm, componentProps: { diff --git a/src/components/common/VnCard.vue b/src/components/common/VnCard.vue new file mode 100644 index 000000000..6d0badffb --- /dev/null +++ b/src/components/common/VnCard.vue @@ -0,0 +1,78 @@ + + diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index f30ea8937..d2ba21888 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -1,5 +1,5 @@ diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index ddf520d0f..fc8475ace 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -131,13 +131,6 @@ async function search() { />