diff options
author | dartcafe <github@dartcafe.de> | 2021-09-05 19:43:15 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-09-05 19:43:15 +0300 |
commit | 45b6e61557fedafd76366908f979684706d65f19 (patch) | |
tree | 5b56f6a6bd3c05b41456bc211f698de9594eb3ed /src/js/components/SideBar | |
parent | a1415ea131710e4d4ada0f55a0d8b56508520ef0 (diff) |
refactoring and let settings have an affect
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/SideBar')
-rw-r--r-- | src/js/components/SideBar/SideBarTabConfiguration.vue | 4 | ||||
-rw-r--r-- | src/js/components/SideBar/SideBarTabShare.vue | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/js/components/SideBar/SideBarTabConfiguration.vue b/src/js/components/SideBar/SideBarTabConfiguration.vue index e904ef6f..d5934f45 100644 --- a/src/js/components/SideBar/SideBarTabConfiguration.vue +++ b/src/js/components/SideBar/SideBarTabConfiguration.vue @@ -50,9 +50,9 @@ <ConfigClosing @change="writePoll" /> </ConfigBox> - <ConfigBox :title="t('polls', 'Access')" icon-class="icon-category-auth"> + <ConfigBox v-if="acl.isOwner || acl.allowAllAccess" :title="t('polls', 'Access')" icon-class="icon-category-auth"> <ConfigAdminAccess v-if="acl.isOwner" @change="writePoll" /> - <ConfigAccess @change="writePoll" /> + <ConfigAccess v-if="acl.allowAllAccess" @change="writePoll" /> </ConfigBox> <ConfigBox :title="t('polls', 'Result display')" icon-class="icon-screen"> diff --git a/src/js/components/SideBar/SideBarTabShare.vue b/src/js/components/SideBar/SideBarTabShare.vue index 59035720..ec68f788 100644 --- a/src/js/components/SideBar/SideBarTabShare.vue +++ b/src/js/components/SideBar/SideBarTabShare.vue @@ -27,7 +27,7 @@ <ConfigBox :title="t('polls', 'Add Shares')" icon-class="icon-add"> <UserSearch /> </ConfigBox> - <SharesPublic /> + <SharesPublic v-if="allowPublicShares"/> <SharesUnsent /> </div> </template> @@ -54,6 +54,7 @@ export default { computed: { ...mapState({ isOwner: (state) => state.poll.acl.isOwner, + allowPublicShares: (state) => state.poll.acl.allowPublicShares, }), }, |