diff options
author | dartcafe <github@dartcafe.de> | 2020-05-08 11:34:30 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-08 11:34:30 +0300 |
commit | 4b24aea4e7acb43f55ded585a06f5838b1f5d396 (patch) | |
tree | 00244f22a878008bba7faa08827eea963991147d /src/js/components/SideBar/SideBarTabOptions.vue | |
parent | 3ec50ad0e00f46ec561278c4d0a4f5da07ffac6a (diff) |
ConfigBox component
Diffstat (limited to 'src/js/components/SideBar/SideBarTabOptions.vue')
-rw-r--r-- | src/js/components/SideBar/SideBarTabOptions.vue | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/js/components/SideBar/SideBarTabOptions.vue b/src/js/components/SideBar/SideBarTabOptions.vue index 8b650d10..da7f05f5 100644 --- a/src/js/components/SideBar/SideBarTabOptions.vue +++ b/src/js/components/SideBar/SideBarTabOptions.vue @@ -22,10 +22,7 @@ <template> <div> - <div v-if="!acl.isOwner" class="config-box"> - <label class="icon-checkmark title"> {{ t('polls', 'As an admin you may edit this poll') }} </label> - </div> - + <ConfigBox v-if="!acl.isOwner" :title="t('polls', 'As an admin you may edit this poll')" icon-class="icon-checkmark" /> <SideBarTabOptionsDate v-if="poll.type === 'datePoll'" /> <SideBarTabOptionsText v-if="poll.type === 'textPoll'" /> </div> @@ -33,6 +30,7 @@ <script> import { mapState } from 'vuex' +import ConfigBox from '../Base/ConfigBox' import SideBarTabOptionsDate from './SideBarTabOptionsDate' import SideBarTabOptionsText from './SideBarTabOptionsText' @@ -40,6 +38,7 @@ export default { name: 'SideBarTabOptions', components: { + ConfigBox, SideBarTabOptionsDate, SideBarTabOptionsText, }, |