Fixed label edit still opening when deleting a label

This commit is contained in:
kolaente 2019-10-26 14:39:27 +02:00
parent 1f504b1e6d
commit 7a997b52a6
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 12 additions and 5 deletions

View file

@ -7,11 +7,10 @@
</p>
<div class="columns">
<div class="labels-list column">
<a
<span
v-for="l in labels" :key="l.id"
class="tag"
:class="{'disabled': user.infos.id !== l.created_by.id}"
@click="editLabel(l)"
:style="{'background': l.hex_color, 'color': l.textColor}"
>
<span
@ -19,10 +18,15 @@
v-tooltip.bottom="'You are not allowed to edit this label because you dont own it.'">
{{ l.title }}
</span>
<span v-else>{{ l.title }}</span>
<a
@click="editLabel(l)"
:style="{'color': l.textColor}"
v-else>
{{ l.title }}
</a>
<a class="delete is-small" @click="deleteLabel(l)" v-if="user.infos.id === l.created_by.id"></a>
</a>
</span>
</div>
<div class="column is-4" v-if="isLabelEdit">
<div class="card">

View file

@ -9,7 +9,10 @@
&.disabled{
opacity: 0.7;
&, a {
cursor: default;
}
}
}
}