Skip to content

Commit

Permalink
Fix usage of citations_export_message when config is not loaded yet
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Apr 26, 2024
1 parent d3c7638 commit c266635
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/components/Citation/CitationsList.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { BButton, BCard, BCollapse, BNav, BNavItem } from "bootstrap-vue";
import { onMounted, onUpdated, ref } from "vue";
import { computed, onMounted, onUpdated, ref } from "vue";
import { getCitations } from "@/components/Citation/services";
import { useConfig } from "@/composables/config";
Expand Down Expand Up @@ -32,6 +32,10 @@ const emit = defineEmits(["rendered", "show", "shown", "hide", "hidden"]);
const outputFormat = ref(outputFormats.CITATION);
const citations = ref<Citation[]>([]);
const citationsExportMessage = computed(() => {
return config?.citations_export_message_html;
});
onUpdated(() => {
emit("rendered");
});
Expand Down Expand Up @@ -65,7 +69,7 @@ onMounted(async () => {
</template>

<div v-if="source === 'histories'" class="infomessage">
<div v-html="config.citations_export_message_html"></div>
<div v-html="citationsExportMessage"></div>
</div>

<div class="citations-formatted">
Expand Down

0 comments on commit c266635

Please sign in to comment.