From d284db672ef90702bddc9de02cf10a46cd345928 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 4 Oct 2021 22:12:39 +0200 Subject: [PATCH] fix: don't allow reordering tasks in filtered lists --- src/views/list/views/List.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/list/views/List.vue b/src/views/list/views/List.vue index 1092eea97..c05d953e8 100644 --- a/src/views/list/views/List.vue +++ b/src/views/list/views/List.vue @@ -99,7 +99,7 @@ task-detail-route="task.detail" v-for="t in tasks" > - +
state.currentList.maxRight > Rights.READ, - list: state => state.currentList, - }), + canWrite() { + return this.list.maxRight > Rights.READ && this.list.id > 0 + }, + list() { + return this.$store.state.currentList + }, }, mounted() { this.$nextTick(() => (this.ctaVisible = true))