Added strikethrough
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kolaente 2019-04-29 11:36:40 +02:00
parent 25a756f562
commit d0c2a12d04
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 20 additions and 3 deletions

View File

@ -45,7 +45,10 @@
@clicked="taskDragged = t"
:class="{'done': t.done}"
>
{{t.text}}
<span>{{t.text}}</span>
<a @click="editTask(t)">
<icon icon="pen"/>
</a>
</VueDragResize>
</div>
<template v-if="showTaskswithoutDates">
@ -110,6 +113,7 @@
fullWidth: 0,
now: null,
dayOffsetUntilToday: 0,
isTaskEdit: false,
}
},
watch: {
@ -211,6 +215,10 @@
message.error(e, this)
})
},
editTask(task){
// eslint-disable-next-line
console.log(task)
},
},
}
</script>

View File

@ -83,8 +83,17 @@ $gantt-vertical-border-color: lighten($grey, 45);
-ms-user-select: none; // Internet Explorer/Edge
user-select: none; // Non-prefixed version, currently supported by Chrome and Opera
&.done {
text-decoration: line-through;
&.done span {
position: relative;
&:after {
content: '';
border-top: 1px solid $dark;
position: absolute;
right: 0;
left: 0;
top: 57%;
}
}
&.nodate {