Show icon when subtasks are hidden
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
parent
fec86f0c0c
commit
729f876a82
2 changed files with 7 additions and 1 deletions
|
@ -1 +0,0 @@
|
|||
<svg width="16" height="16" version="1.1" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m2 2v2h12v-2zm4 5v2h8v-2zm4 5v2h4v-2z"/></svg>
|
Before Width: | Height: | Size: 153 B |
|
@ -73,6 +73,9 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|||
<span :style="{'background-color': task.calendar.color}" class="calendar-indicator" />
|
||||
<span class="calendar-name">{{ task.calendar.displayName }}</span>
|
||||
</div>
|
||||
<div v-if="hasHiddenSubtasks">
|
||||
<span class="icon icon-sprt-bw sprt-subtasks-hidden" />
|
||||
</div>
|
||||
<div v-if="task.pinned">
|
||||
<span class="icon icon-sprt-bw sprt-pinned" />
|
||||
</div>
|
||||
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue