Skip to content

Commit

Permalink
Merge branch 'release' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel committed Jan 15, 2025
2 parents 8e312dd + d2c8c2f commit 3c0691a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
color="high"
ghost
squared
@click="openDeleteGuard"
@click="openWarningModal"
>
{{ $t("t.delete") }}
</BIMDataButton>
Expand All @@ -82,9 +82,11 @@

<script>
import { provide, ref } from "vue";
import { useAppModal } from "../../../app/app-modal/app-modal.js";
import { useToggle } from "../../../../../composables/toggle.js";
import { useUser } from "../../../../../state/user.js";
// Components
import WarningModal from "../../../app/warning-modal/WarningModal.vue";
import ProjectCardDeleteGuard from "../project-card-delete-guard/ProjectCardDeleteGuard.vue";
import ProjectCardUpdateForm from "../project-card-update-form/ProjectCardUpdateForm.vue";
import ProjectCardLeaveGuard from "../project-card-leave-guard/ProjectCardLeaveGuard.vue";
Expand Down Expand Up @@ -147,6 +149,11 @@ export default {
emit("close");
};
const { openModal } = useAppModal();
const openWarningModal = () => {
openModal({ component: WarningModal });
};
return {
// References
loading,
Expand All @@ -163,6 +170,7 @@ export default {
openDeleteGuard,
openUpdateForm,
openLeaveGuard,
openWarningModal,
resetMenu,
toggleFavorite
};
Expand Down

0 comments on commit 3c0691a

Please sign in to comment.