Skip to content
Snippets Groups Projects
Verified Commit d723b99e authored by Martin Weise's avatar Martin Weise
Browse files

Updated the PID list

parent 9f84553f
Branches
Tags
No related merge requests found
No preview for this file type
...@@ -55,7 +55,10 @@ export default { ...@@ -55,7 +55,10 @@ export default {
return this.$t(`pages.database.status.${this.mode}`) return this.$t(`pages.database.status.${this.mode}`)
}, },
hasIdentifier () { 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 () { color () {
if (this.hasIdentifier) { if (this.hasIdentifier) {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
left> left>
<template <template
v-slot:activator="{ props }"> v-slot:activator="{ props }">
{{ formatTimestampUTCLabel(identifier.created) }} <span class="mr-2">{{ formatTimestampUTCLabel(identifier.created) }}</span>
<v-icon <v-icon
:color="identifier.status === 'published' ? 'primary' : null" :color="identifier.status === 'published' ? 'primary' : null"
v-bind="props"> v-bind="props">
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
return identifierService.identifierPreferEnglishTitle(identifier) return identifierService.identifierPreferEnglishTitle(identifier)
}, },
isActive (identifier) { isActive (identifier) {
if (!identifier) { if (!identifier || !this.identifier) {
return false return false
} }
return this.identifier.id === identifier.id return this.identifier.id === identifier.id
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
return identifier.status === 'published' ? 'primary' : null return identifier.status === 'published' ? 'primary' : null
}, },
init () { init () {
if (!this.identifiers) { if (!this.identifiers || !this.identifier) {
return null return null
} }
this.idx = this.identifiers.map(i => i.id).indexOf(this.identifier.id) this.idx = this.identifiers.map(i => i.id).indexOf(this.identifier.id)
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
v-if="identifier" v-if="identifier"
:identifier="identifier" /> :identifier="identifier" />
<v-card <v-card
v-if="identifier"
variant="flat" variant="flat"
rounded="0"> rounded="0">
<v-card-text> <v-card-text>
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment