-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Show CATALOGUE_BCC_MSG value if set (#3505)
feat: Show CATALOGUE_BCC_MSG value if set Closes #3504
- Loading branch information
1 parent
03e3cae
commit 25b5e9c
Showing
3 changed files
with
26 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script setup lang="ts"> | ||
const CATALOGUE_LANDING_TITLE = "CATALOGUE_BCC_MSG"; | ||
const message = ref(); | ||
fetchSetting(CATALOGUE_LANDING_TITLE).then((resp) => { | ||
const setting = resp.data["_settings"].find( | ||
(setting: { key: string; value: string }) => { | ||
return setting.key === CATALOGUE_LANDING_TITLE; | ||
} | ||
); | ||
if (setting) { | ||
message.value = setting.value; | ||
} | ||
}); | ||
</script> | ||
<template> | ||
<div v-if="message" class="pl-3"> | ||
<p class="text-body-base">{{ message }}</p> | ||
</div> | ||
</template> |
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