Bugfix/show the correct negative icon in challenge habit (#12313)

* Habits in the challenge view have incorrect and misaligned negative icon
Change the check for the negative icon to something more suitable so the lock icon is shown when needed

* Habits in the challenge view have incorrect and misaligned negative icon
Removed the check for task.group.id

Co-authored-by: Patrick van Zadel <patrickvanzadel@eleven.nl>
This commit is contained in:
Patrick van Zadel
2020-06-23 11:36:49 +02:00
committed by GitHub
parent 3b7af150cd
commit b2bb251522

View File

@@ -317,7 +317,7 @@
@click="(isUser && task.down) ? score('down') : null" @click="(isUser && task.down) ? score('down') : null"
> >
<div <div
v-if="task.group.id && !isUser" v-if="!isUser"
class="svg-icon lock" class="svg-icon lock"
:class="task.down ? controlClass.down.icon : 'negative'" :class="task.down ? controlClass.down.icon : 'negative'"
v-html="icons.lock" v-html="icons.lock"