diff options
author | dartcafe <github@dartcafe.de> | 2021-11-14 09:59:38 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-11-26 11:23:42 +0300 |
commit | 71d6ed9a192b0b5a1b02d49d3be7f8a93422f314 (patch) | |
tree | 9dbd7575caa10bb5f3d76371392f89a85c1fc638 /src/js/components/SideBar | |
parent | 0f6fc28619a6b05eff888f10a83134e8ff912772 (diff) |
compact shares list
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/SideBar')
-rw-r--r-- | src/js/components/SideBar/SideBarTabConfiguration.vue | 10 | ||||
-rw-r--r-- | src/js/components/SideBar/SideBarTabShare.vue | 34 |
2 files changed, 8 insertions, 36 deletions
diff --git a/src/js/components/SideBar/SideBarTabConfiguration.vue b/src/js/components/SideBar/SideBarTabConfiguration.vue index 14c6dd20..de60eaec 100644 --- a/src/js/components/SideBar/SideBarTabConfiguration.vue +++ b/src/js/components/SideBar/SideBarTabConfiguration.vue @@ -52,11 +52,6 @@ @change="writePoll" /> </ConfigBox> - <ConfigBox v-if="isOwner || allowAllAccess" :title="t('polls', 'Access')" icon-class="icon-category-auth"> - <ConfigAdminAccess v-if="isOwner" @change="writePoll" /> - <ConfigAccess v-if="allowAllAccess" @change="writePoll" /> - </ConfigBox> - <ConfigBox :title="t('polls', 'Result display')" icon-class="icon-screen"> <ConfigShowResults @change="writePoll" /> </ConfigBox> @@ -78,8 +73,6 @@ import { mapGetters, mapState } from 'vuex' import { showError } from '@nextcloud/dialogs' import moment from '@nextcloud/moment' import ConfigBox from '../Base/ConfigBox' -import ConfigAccess from '../Configuration/ConfigAccess' -import ConfigAdminAccess from '../Configuration/ConfigAdminAccess' import ConfigAllowComment from '../Configuration/ConfigAllowComment' import ConfigAllowMayBe from '../Configuration/ConfigAllowMayBe' import ConfigAnonymous from '../Configuration/ConfigAnonymous' @@ -98,8 +91,6 @@ export default { components: { ConfigBox, - ConfigAccess, - ConfigAdminAccess, ConfigAllowComment, ConfigAllowMayBe, ConfigAnonymous, @@ -122,7 +113,6 @@ export default { pollId: (state) => state.poll.id, hasEpiration: (state) => state.poll.expire, isOwner: (state) => state.poll.acl.isOwner, - allowAllAccess: (state) => state.poll.acl.allowAllAccess, }), ...mapGetters({ diff --git a/src/js/components/SideBar/SideBarTabShare.vue b/src/js/components/SideBar/SideBarTabShare.vue index b16124ce..9eb2e833 100644 --- a/src/js/components/SideBar/SideBarTabShare.vue +++ b/src/js/components/SideBar/SideBarTabShare.vue @@ -21,54 +21,36 @@ --> <template> - <div> - <ConfigBox v-if="isOwner || allowAllAccess" :title="t('polls', 'Access')" icon-class="icon-category-auth"> - <ConfigAdminAccess v-if="isOwner && adminAccess" @change="writePoll" /> - <ConfigAccess v-if="allowAllAccess" @change="writePoll" /> - </ConfigBox> - <SharesEffective /> - <SharesUnsent /> + <div class="sidebar-share"> + <SharesEffective class="shares effective" /> + <SharesUnsent class="shares unsent" /> <ConfigPublicPollsEmail /> </div> </template> <script> -import { mapState } from 'vuex' -import ConfigAccess from '../Configuration/ConfigAccess' -import ConfigAdminAccess from '../Configuration/ConfigAdminAccess' -import ConfigBox from '../Base/ConfigBox' import SharesEffective from '../Shares/SharesEffective' import SharesUnsent from '../Shares/SharesUnsent' -import { writePoll } from '../../mixins/writePoll' import ConfigPublicPollsEmail from '../Configuration/ConfigPublicPollsEmail' export default { name: 'SideBarTabShare', components: { - ConfigBox, - ConfigAccess, - ConfigAdminAccess, SharesEffective, SharesUnsent, ConfigPublicPollsEmail, }, - mixins: [writePoll], - - computed: { - ...mapState({ - isOwner: (state) => state.poll.acl.isOwner, - allowAllAccess: (state) => state.poll.acl.allowAllAccess, - adminAccess: (state) => state.poll.adminAccess, - }), - - }, - } </script> <style lang="scss"> + .sidebar-share { + display: flex; + flex-direction: column; + } + .shared-list { display: flex; flex-flow: column; |