From b1393b7e32b39bea115b835fad97efb9c00646a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Sun, 21 Jul 2019 22:11:41 +0200 Subject: [PATCH] =?UTF-8?q?Prevent=20editing=20read-only=20tasks=20in=20li?= =?UTF-8?q?st=20view=20Signed-off-by:=20Raimund=20Schl=C3=BC=C3=9Fler=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/src/style.scss | 4 ++++ src/components/Task.vue | 4 ++-- src/store/tasks.js | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/css/src/style.scss b/css/src/style.scss index 56af9bda..5f02d540 100644 --- a/css/src/style.scss +++ b/css/src/style.scss @@ -1153,6 +1153,10 @@ } } + &.disabled { + cursor: not-allowed; + } + &.active { opacity: .7; } diff --git a/src/components/Task.vue b/src/components/Task.vue index a58e97d0..d083972e 100644 --- a/src/components/Task.vue +++ b/src/components/Task.vue @@ -47,11 +47,11 @@ License along with this library. If not, see . role="checkbox" @click="toggleCompleted(task)" > - + - +