-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #886 from bcgov/banner-806
Banner 806
- Loading branch information
Showing
10 changed files
with
69 additions
and
10 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
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
2 changes: 1 addition & 1 deletion
2
services/tenant-ui/frontend/src/components/innkeeper/InnkeeperLogin.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
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
16 changes: 16 additions & 0 deletions
16
services/tenant-ui/frontend/src/components/notifications/Alert.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,16 @@ | ||
<template> | ||
<Message | ||
v-if="stringOrBooleanTruthy(config.frontend.ux.infoBanner?.showMessage)" | ||
:severity="config.frontend.ux.infoBanner.messageLevel" | ||
:closable="false" | ||
> | ||
{{ config.frontend.ux.infoBanner.message }} | ||
</Message> | ||
</template> | ||
<script setup lang="ts"> | ||
import Message from 'primevue/message'; | ||
import { storeToRefs } from 'pinia'; | ||
import { useConfigStore } from '@/store/configStore'; | ||
const { config } = storeToRefs(useConfigStore()); | ||
import { stringOrBooleanTruthy } from '@/helpers'; | ||
</script> |
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,13 +1,25 @@ | ||
<template> | ||
<AppLayout v-if="tenantReady" /> | ||
<Login v-else /> | ||
<div class="alert-container"> | ||
<Alert class="z-2" /> | ||
<AppLayout v-if="tenantReady" /> | ||
<Login v-else /> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import Alert from '@/components/notifications/Alert.vue'; | ||
import AppLayout from '@/components/layout/AppLayout.vue'; | ||
import Login from '@/components/Login.vue'; | ||
import { storeToRefs } from 'pinia'; | ||
import { useTenantStore } from '@/store'; | ||
const { tenantReady } = storeToRefs(useTenantStore()); | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
// This is the info banner alert that is shown on all pages | ||
.p-message { | ||
margin: 0; | ||
border-radius: 0; | ||
} | ||
</style> |