-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
121 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/components/specific/app/warning-modal/WarningModal.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<template> | ||
<div class="warning-modal"> | ||
<BIMDataButton class="warning-modal__btn-close" ghost rounded icon @click="closeModal"> | ||
<BIMDataIconClose size="xxs" fill color="granite" /> | ||
</BIMDataButton> | ||
<BIMDataIconWarning class="warning-modal__icon" size="xl" fill color="warning" /> | ||
<div class="warning-modal__title"> | ||
{{ $t("WarningModal.title") }} | ||
</div> | ||
<div class="warning-modal__text"> | ||
{{ $t("WarningModal.text1") }} | ||
</div> | ||
<div class="warning-modal__text"> | ||
{{ $t("WarningModal.text2") }} | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { onBeforeRouteLeave } from "vue-router"; | ||
import { useAppModal } from "../app-modal/app-modal.js"; | ||
const { closeModal } = useAppModal(); | ||
onBeforeRouteLeave(() => closeModal()); | ||
</script> | ||
|
||
<style scoped> | ||
.warning-modal { | ||
position: relative; | ||
width: 500px; | ||
min-height: 400px; | ||
padding: calc(var(--spacing-unit) * 3); | ||
background-color: var(--color-white); | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: var(--spacing-unit); | ||
.warning-modal__title { | ||
font-size: 1.5rem; | ||
font-weight: bold; | ||
color: var(--color-warning); | ||
} | ||
.warning-modal__text { | ||
text-align: center; | ||
} | ||
.warning-modal__btn-close { | ||
position: absolute; | ||
top: calc(var(--spacing-unit) / 2); | ||
right: calc(var(--spacing-unit) / 2); | ||
&:hover { | ||
background-color: rgba(216, 216, 216, 0.1); | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
const AVOID_SPACE_DELETION = ENV.VUE_APP_AVOID_SPACE_DELETION; | ||
const IS_SPACE_DELETION_ENABLED = AVOID_SPACE_DELETION !== "true"; | ||
|
||
const SPACE_ROLE = Object.freeze({ | ||
ADMIN: 100, | ||
USER: 50 | ||
}); | ||
|
||
export { SPACE_ROLE }; | ||
export { | ||
IS_SPACE_DELETION_ENABLED, | ||
SPACE_ROLE | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters