Allow to toggle all day state of a task
This commit is contained in:
parent
3bbe793687
commit
f67f525e15
2 changed files with 3 additions and 3 deletions
|
@ -132,10 +132,10 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|||
:aria-checked="task.allDay"
|
||||
class="section detail-all-day reactive"
|
||||
role="checkbox"
|
||||
@click="toggleAllDay(task.uri)"
|
||||
@click="toggleAllDay(task)"
|
||||
>
|
||||
<div>
|
||||
<span :class="{'icon-checkmark': task.allDay, 'disabled': task.calendar.readOnly}" class="icon icon-color detail-checkbox" />
|
||||
<span :class="{'icon-checkmark': task.allDay, 'disabled': task.calendar.readOnly}" class="icon icon-bw detail-checkbox" />
|
||||
<span class="section-title">
|
||||
{{ t('tasks', 'All day') }}
|
||||
</span>
|
||||
|
|
|
@ -389,7 +389,7 @@ const mutations = {
|
|||
* @param {Task} task The task
|
||||
*/
|
||||
toggleAllDay(state, task) {
|
||||
console.debug('Toggles the allday state of task ' + task)
|
||||
Vue.set(task, 'allDay', !task.allDay)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue