From 9ac851eaa3a5c6df794be0d60b63002679f6e273 Mon Sep 17 00:00:00 2001 From: BacLuc Date: Sun, 6 Jun 2021 15:09:20 +0200 Subject: [PATCH] frontend/Activity.vue: disable editing activities for guests For that we have to propagate a disabled property to all involved components. Issue: #1415 --- .../components/activity/CardContentNode.vue | 16 ++++++++++---- .../src/components/activity/ContentNode.vue | 4 +++- .../activity/DraggableContentNodes.vue | 8 ++++--- .../activity/content/ColumnLayout.vue | 3 ++- .../activity/content/LAThematicArea.vue | 2 +- .../components/activity/content/Material.vue | 3 ++- .../src/components/activity/content/Notes.vue | 2 +- .../activity/content/SafetyConcept.vue | 2 +- .../activity/content/Storyboard.vue | 12 +++++------ .../activity/content/Storycontext.vue | 2 +- .../src/components/form/api/ApiSortable.vue | 4 +++- .../src/components/material/MaterialTable.vue | 20 ++++++++++-------- frontend/src/mixins/campRoleMixin.js | 21 +++++++++++++++++++ frontend/src/mixins/contentNodeMixin.js | 3 ++- frontend/src/views/activity/Activity.vue | 21 +++++++++++++------ 15 files changed, 86 insertions(+), 37 deletions(-) create mode 100644 frontend/src/mixins/campRoleMixin.js diff --git a/frontend/src/components/activity/CardContentNode.vue b/frontend/src/components/activity/CardContentNode.vue index 3d1c560fcc..c1ff40a3b3 100644 --- a/frontend/src/components/activity/CardContentNode.vue +++ b/frontend/src/components/activity/CardContentNode.vue @@ -2,7 +2,8 @@ -