Fix icon for status selection

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2019-10-09 16:46:36 +02:00
parent 7ebb944d41
commit 6ea98c37de
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178
3 changed files with 10 additions and 2 deletions

View file

@ -881,7 +881,8 @@
right: 22px;
}
&.icon-privacy {
&.icon-privacy,
&.icon-status {
opacity: 1;
cursor: unset;
}

View file

Before

Width:  |  Height:  |  Size: 223 B

After

Width:  |  Height:  |  Size: 223 B

View file

@ -205,7 +205,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
<div v-click-outside="() => finishEditing('status')"
@click="editProperty('status')"
>
<span class="icon icon-color icon-current" />
<span :class="[iconStatus]" class="icon" />
<div class="detail-calendar-container">
<Multiselect
:value="statusSelect.find( _ => _.type === task.status )"
@ -601,6 +601,13 @@ export default {
return 'icon-bw icon-tag'
}
},
iconStatus: function() {
if (this.task.status) {
return 'icon-color icon-status'
} else {
return 'icon-bw icon-current'
}
},
...mapGetters({
writableCalendars: 'getSortedWritableCalendars',
task: 'getTaskByRoute',