WSL/SLF GitLab Repository

Commit 257d6a44 authored by Dominik Haas's avatar Dominik Haas
Browse files

refactor(AuthorCard): changed author dead icon and analizing the author names;

parent 0f82a9f0
Pipeline #1566 failed with stages
in 16 seconds
......@@ -20,7 +20,7 @@
<v-tooltip v-if="authorIsDead"
bottom>
<template v-slot:activator="{ on }">
<v-icon v-on="on" x-small >hourglass_empty</v-icon>
<v-icon v-on="on" x-small >hourglass_bottom</v-icon>
</template>
{{ authorPassedInfo }}
</v-tooltip>
......
......@@ -31,7 +31,7 @@
dark
small
:class="dark ? 'white--text' : 'black--text'">
hourglass_empty
hourglass_bottom
</v-icon>
</template>
......@@ -431,7 +431,11 @@ export default {
background-position: center, center; background-size: cover;`;
},
authorIsDead() {
return this.asciiDead && this.author.fullName ? this.author.fullName.match(this.asciiDead) : false;
if (!this.asciiDead) {
return false;
}
return this.author?.firstName?.includes(this.asciiDead) || this.author?.lastName?.includes(this.asciiDead) || false;
},
},
methods: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment