Fix setting a task as favorite button

This commit is contained in:
kolaente 2021-07-29 13:00:48 +02:00
parent c4067c7c35
commit 8a08a41a3c
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 4 additions and 4 deletions

View file

@ -513,8 +513,8 @@
"moveList": "Move task",
"color": "Set task color",
"delete": "Delete task",
"favorite": "Make this task as a favorite",
"unfavorite": "Don't make this task a favorite"
"favorite": "Save as favorite",
"unfavorite": "Remove from favorites"
}
},
"attributes": {

View file

@ -364,9 +364,9 @@
<x-button
@click="toggleFavorite"
type="secondary"
:icon="task.isFavorite ? ['far', 'star'] : 'star'"
:icon="task.isFavorite ? 'star' : ['far', 'star']"
>
{{ task.isFavorite ? $t('task.detail.actions.favorite') : $t('task.detail.actions.unfavorite') }}
{{ task.isFavorite ? $t('task.detail.actions.unfavorite') : $t('task.detail.actions.favorite') }}
</x-button>
<x-button
@click="showDeleteModal = true"