diff --git a/dbrepo-ui/components/identifier/Citation.vue b/dbrepo-ui/components/identifier/Citation.vue index ca5d2da00fcfa2a5d8d64403fdb606896f7a1c4f..8cd96902d48009da22cd761849be1962ba07c248 100644 --- a/dbrepo-ui/components/identifier/Citation.vue +++ b/dbrepo-ui/components/identifier/Citation.vue @@ -63,8 +63,11 @@ export default { identifierService.findOne(this.identifier.id, accept) .then((citation) => { this.citation = citation + this.loading = false }) - .finally(() => { + .error(({code, message}) => { + const toast = useToastInstance() + toast.error(this.$t(`${code}: ${message}`)) this.loading = false }) } diff --git a/dbrepo-ui/locales/en-US.json b/dbrepo-ui/locales/en-US.json index a14d7292831b1f2e81009be3d39f9051b99c6b8d..a345e0bec5362890064c770ccb96ec13eb431295 100644 --- a/dbrepo-ui/locales/en-US.json +++ b/dbrepo-ui/locales/en-US.json @@ -35,6 +35,9 @@ "pages": { "identifier": { "title": "Identifier", + "export": { + "text": "Metadata Export" + }, "pid": { "title": "Persistent Identifier" }, @@ -1209,10 +1212,6 @@ "created": "Successfully created table", "semantics": "Successfully assigned semantic instance" }, - "schema": { - "tables": "Successfully refreshed database tables metadata", - "views": "Successfully refreshed database views metadata" - }, "schema": { "tables": "Successfully refreshed database tables metadata.", "views": "Successfully refreshed database views metadata."