WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EnviDat
EnviDat-Frontend
Commits
257d6a44
Commit
257d6a44
authored
Oct 26, 2022
by
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
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/components/Chips/TagChipAuthor.vue
View file @
257d6a44
...
...
@@ -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>
...
...
src/modules/metadata/components/AuthorCard.vue
View file @
257d6a44
...
...
@@ -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
:
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment