Allow to toggle all day state of a task

This commit is contained in:
Raimund Schlüßler 2019-01-13 11:32:12 +01:00
parent 3bbe793687
commit f67f525e15
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178
2 changed files with 3 additions and 3 deletions

View file

@ -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>

View file

@ -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)
}
}