Fix setting a task as favorite button
This commit is contained in:
parent
c4067c7c35
commit
8a08a41a3c
2 changed files with 4 additions and 4 deletions
|
@ -513,8 +513,8 @@
|
||||||
"moveList": "Move task",
|
"moveList": "Move task",
|
||||||
"color": "Set task color",
|
"color": "Set task color",
|
||||||
"delete": "Delete task",
|
"delete": "Delete task",
|
||||||
"favorite": "Make this task as a favorite",
|
"favorite": "Save as favorite",
|
||||||
"unfavorite": "Don't make this task a favorite"
|
"unfavorite": "Remove from favorites"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"attributes": {
|
"attributes": {
|
||||||
|
|
|
@ -364,9 +364,9 @@
|
||||||
<x-button
|
<x-button
|
||||||
@click="toggleFavorite"
|
@click="toggleFavorite"
|
||||||
type="secondary"
|
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>
|
||||||
<x-button
|
<x-button
|
||||||
@click="showDeleteModal = true"
|
@click="showDeleteModal = true"
|
||||||
|
|
Loading…
Reference in a new issue