Skip to content

Commit 99ea12d

Browse files
committed
Specify footer banner text with env var
1 parent 86926ad commit 99ea12d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

web/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ yarn migrate 0.5.1
4242

4343
- VITE_APP_SERVER_DOWNTIME_MESSAGE
4444
- A custom error message displayed when the backend server can't be reached.
45+
46+
- VITE_APP_FOOTER_BANNER_TEXT
47+
- A custom message to show in an information banner on the DANDI homepage. The banner does not render if this isn't set.

web/src/components/FooterBanner.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<template>
2-
<v-banner color="grey darken-1 text-center">
2+
<v-banner color="grey darken-1 text-center" v-if="bannerText">
33
<v-icon>
44
mdi-information
55
</v-icon>
66
<span>
7-
This repository is under review by NIH for potential modification
8-
in compliance with U.S. federal Administration directives.
7+
{{ bannerText }}
98
</span>
109
</v-banner>
1110
</template>
11+
12+
<script setup lang="ts">
13+
import { computed } from 'vue';
14+
15+
const bannerText = computed(() => import.meta.env.VITE_APP_FOOTER_BANNER_TEXT);
16+
</script>

0 commit comments

Comments
 (0)