Skip to content

Commit

Permalink
fix: Use overridden Dialog
Browse files Browse the repository at this point in the history
- to autoclose on route change
  • Loading branch information
surajshetty3416 committed Jan 27, 2025
1 parent 0d60256 commit 00e7acf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/BuilderToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
v-model="showSettingsDialog"
style="z-index: 40"
class="[&>div>div[id^=headlessui-dialog-panel]]:my-3"
:disableOutsideClickToClose="true"
:options="{
title: 'Settings',
size: '5xl',
Expand Down Expand Up @@ -162,7 +161,8 @@ import SettingsGearIcon from "@/components/Icons/SettingsGear.vue";
import { webPages } from "@/data/webPage";
import { BuilderPage } from "@/types/Builder/BuilderPage";
import { getTextContent } from "@/utils/helpers";
import { Dialog, Tooltip } from "frappe-ui";
import { Tooltip } from "frappe-ui";
import Dialog from "@/components/Controls/Dialog.vue";
import Popover from "frappe-ui/src/components/Popover.vue";
import { computed, ref } from "vue";
import { toast } from "vue-sonner";
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/Modals/NewBlockTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
<script setup lang="ts">
import useStore from "@/store";
import Block from "@/utils/block";
import { Dialog, FileUploader } from "frappe-ui";
import { FileUploader } from "frappe-ui";
import Dialog from "@/components/Controls/Dialog.vue";
import { ref } from "vue";
const showBlockTemplateDialog = ref(false);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/PageBuilderDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
v-model="showSettingsDialog"
style="z-index: 40"
class="[&>div>div[id^=headlessui-dialog-panel]]:my-3"
:disableOutsideClickToClose="true"
:options="{
title: 'Settings',
size: '5xl',
Expand Down Expand Up @@ -240,7 +239,8 @@ import useStore from "@/store";
import { posthog } from "@/telemetry";
import { BuilderPage } from "@/types/Builder/BuilderPage";
import { useDark, useEventListener, useStorage, useToggle, watchDebounced } from "@vueuse/core";
import { createResource, Dialog, Dropdown } from "frappe-ui";
import { createResource, Dropdown } from "frappe-ui";
import Dialog from "@/components/Controls/Dialog.vue";
import { onActivated, Ref, ref, watch } from "vue";
const isDark = useDark({
Expand Down

0 comments on commit 00e7acf

Please sign in to comment.