diff --git a/dbrepo-auth-service/listeners/create-event-listener.jar b/dbrepo-auth-service/listeners/create-event-listener.jar index a76f0bb8533d953da171c3de7ff12d6f7d2f1cf8..946c7feeebc93f3d600bbd27ff6e7012c4479703 100644 Binary files a/dbrepo-auth-service/listeners/create-event-listener.jar and b/dbrepo-auth-service/listeners/create-event-listener.jar differ diff --git a/dbrepo-ui/components/ResourceStatus.vue b/dbrepo-ui/components/ResourceStatus.vue index 017908b3af3b34b0ea5b99405081eb49133495e5..c2a2f78efc81f516088d7873fe9acd8892696aae 100644 --- a/dbrepo-ui/components/ResourceStatus.vue +++ b/dbrepo-ui/components/ResourceStatus.vue @@ -55,7 +55,10 @@ export default { return this.$t(`pages.database.status.${this.mode}`) }, hasIdentifier () { - return this.resource.identifiers?.length > 0 + if (this.resource.identifiers?.length === 0) { + return false + } + return this.resource.identifiers.filter(i => i.status === 'published').length > 0 }, color () { if (this.hasIdentifier) { diff --git a/dbrepo-ui/components/identifier/Select.vue b/dbrepo-ui/components/identifier/Select.vue index 6ad3450a6ec29dc8225a45b4b8ed5ebbc4248c87..f1cce852529f1c789f6d6852d8797b39e1f2f3cc 100644 --- a/dbrepo-ui/components/identifier/Select.vue +++ b/dbrepo-ui/components/identifier/Select.vue @@ -21,7 +21,7 @@ left> <template v-slot:activator="{ props }"> - {{ formatTimestampUTCLabel(identifier.created) }} + <span class="mr-2">{{ formatTimestampUTCLabel(identifier.created) }}</span> <v-icon :color="identifier.status === 'published' ? 'primary' : null" v-bind="props"> @@ -124,7 +124,7 @@ export default { return identifierService.identifierPreferEnglishTitle(identifier) }, isActive (identifier) { - if (!identifier) { + if (!identifier || !this.identifier) { return false } return this.identifier.id === identifier.id @@ -136,7 +136,7 @@ export default { return identifier.status === 'published' ? 'primary' : null }, init () { - if (!this.identifiers) { + if (!this.identifiers || !this.identifier) { return null } this.idx = this.identifiers.map(i => i.id).indexOf(this.identifier.id) diff --git a/dbrepo-ui/pages/database/[database_id]/info.vue b/dbrepo-ui/pages/database/[database_id]/info.vue index 0af35a5d3bee8dc572488c39f6ac22d9b5c4a6f9..1b4c576a06e3ac1b90e5fc2a80aa5d070c53bdce 100644 --- a/dbrepo-ui/pages/database/[database_id]/info.vue +++ b/dbrepo-ui/pages/database/[database_id]/info.vue @@ -9,7 +9,6 @@ v-if="identifier" :identifier="identifier" /> <v-card - v-if="identifier" variant="flat" rounded="0"> <v-card-text> diff --git a/helm/dbrepo/files/create-event-listener.jar b/helm/dbrepo/files/create-event-listener.jar index a76f0bb8533d953da171c3de7ff12d6f7d2f1cf8..946c7feeebc93f3d600bbd27ff6e7012c4479703 100644 Binary files a/helm/dbrepo/files/create-event-listener.jar and b/helm/dbrepo/files/create-event-listener.jar differ