mirror of
https://github.com/directus/directus.git
synced 2026-02-07 07:15:05 -05:00
Render browser popup on reload
This commit is contained in:
@@ -192,7 +192,12 @@ export default defineComponent({
|
||||
const zoomToFit = ref(false);
|
||||
|
||||
watch(editMode, (editModeEnabled) => {
|
||||
if (editModeEnabled) zoomToFit.value = false;
|
||||
if (editModeEnabled) {
|
||||
zoomToFit.value = false;
|
||||
window.onbeforeunload = () => '';
|
||||
} else {
|
||||
window.onbeforeunload = null;
|
||||
}
|
||||
});
|
||||
|
||||
const currentDashboard = computed(() =>
|
||||
|
||||
Reference in New Issue
Block a user