diff --git a/src/App.vue b/src/App.vue index 37978996e..44fdd18af 100644 --- a/src/App.vue +++ b/src/App.vue @@ -34,7 +34,10 @@ :style="{ 'opacity': currentList.title === '' ? '0': '1' }"> {{ currentList.title === '' ? 'Loading...': currentList.title}} - + @@ -291,6 +294,7 @@ import NamespaceService from './services/namespace' import authTypes from './models/authTypes' + import Rights from './models/rights.json' import swEvents from './ServiceWorker/events' import Notification from './components/misc/notification' @@ -427,6 +431,7 @@ background: 'background', imprintUrl: state => state.config.legal.imprintUrl, privacyPolicyUrl: state => state.config.legal.privacyPolicyUrl, + canWriteCurrentList: state => state.currentList.maxRight > Rights.READ, }), methods: { logout() { diff --git a/src/components/input/editor.vue b/src/components/input/editor.vue index c790297dc..225256606 100644 --- a/src/components/input/editor.vue +++ b/src/components/input/editor.vue @@ -1,6 +1,6 @@ -
+ state.currentList.maxRight > Rights.READ, + }), methods: { buildTheGanttChart() { this.setDates() diff --git a/src/components/tasks/partials/attachments.vue b/src/components/tasks/partials/attachments.vue index 4b176ce1b..120159a2f 100644 --- a/src/components/tasks/partials/attachments.vue +++ b/src/components/tasks/partials/attachments.vue @@ -6,6 +6,7 @@ Attachments @@ -14,7 +15,7 @@ - + {{ attachmentService.uploadProgress }}% @@ -41,7 +42,7 @@ - + @@ -52,7 +53,7 @@
-
+
@@ -102,7 +103,10 @@ }, initialAttachments: { type: Array, - } + }, + editEnabled: { + default: true, + }, }, created() { this.attachmentService = new AttachmentService() diff --git a/src/components/tasks/partials/comments.vue b/src/components/tasks/partials/comments.vue index ac6f958d3..20bb85e89 100644 --- a/src/components/tasks/partials/comments.vue +++ b/src/components/tasks/partials/comments.vue @@ -1,6 +1,6 @@