From 729f876a82950b066a17614ab83cebac95a86e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Mon, 2 Mar 2020 21:34:59 +0100 Subject: [PATCH] Show icon when subtasks are hidden MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- img/src/bw/subtasks-hidden~hover.svg | 1 - src/components/TaskBody.vue | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 img/src/bw/subtasks-hidden~hover.svg diff --git a/img/src/bw/subtasks-hidden~hover.svg b/img/src/bw/subtasks-hidden~hover.svg deleted file mode 100644 index 3a8ed2c5..00000000 --- a/img/src/bw/subtasks-hidden~hover.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/components/TaskBody.vue b/src/components/TaskBody.vue index ce58fe0a..ee2f6e1c 100644 --- a/src/components/TaskBody.vue +++ b/src/components/TaskBody.vue @@ -73,6 +73,9 @@ License along with this library. If not, see . {{ task.calendar.displayName }} +
+ +
@@ -230,6 +233,10 @@ export default { }) }, + hasHiddenSubtasks() { + return (this.hasCompletedSubtasks && this.task.hideCompletedSubtasks) || (this.filteredSubtasks.length && this.task.hideSubtasks) + }, + /** * Returns the placeholder string shown in the subtasks input field *