Setting composed title as page title. Using Teen Core Club title if it isn't shoot ID.

This commit is contained in:
2020-07-03 04:42:20 +02:00
parent 48a127409e
commit c47fae3a1b
5 changed files with 102 additions and 24 deletions

View File

@@ -103,7 +103,7 @@
>{{ release.title }}</h2>
<h2
v-if="release.actors.length > 0"
v-else-if="release.actors.length > 0"
class="title title-composed"
>
{{ release.actors.map(actor => actor.name).join(', ') }} for {{ release.entity.name }}
@@ -240,7 +240,9 @@ import Scroll from '../scroll/scroll.vue';
import Expand from '../expand/expand.vue';
function pageTitle() {
return this.release && this.release.title;
return this.release
&& (this.release.title
|| (this.release.actors.length > 0 ? `${this.release.actors.map(actor => actor.name).join(', ')} for ${this.release.entity.name}` : null));
}
async function mounted() {