diff options
author | Marco <marcoambrosini@icloud.com> | 2022-08-10 16:12:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 16:12:22 +0300 |
commit | 81d91eef2dee835e1126241f59dbb4e0789aa480 (patch) | |
tree | b7656b4ac935d1e459cc3f7c440d0e0a5c22a7eb /src | |
parent | 5d5098f91fe65688ede3ff14ff0dfceb7103b30f (diff) | |
parent | 39c9de2ca3149950fcddd67b773d410d20c6cd88 (diff) |
Merge pull request #7697 from nextcloud/bugfix/noid/fix-permission-button
Move permission button to Vue
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ConversationSettings/ConversationPermissionsSettings.vue | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/components/ConversationSettings/ConversationPermissionsSettings.vue b/src/components/ConversationSettings/ConversationPermissionsSettings.vue index 3d6da349c..5dec2e2ab 100644 --- a/src/components/ConversationSettings/ConversationPermissionsSettings.vue +++ b/src/components/ConversationSettings/ConversationPermissionsSettings.vue @@ -66,12 +66,14 @@ </CheckboxRadioSwitch> <!-- Edit advanced permissions --> - <button v-show="showEditButton" + <ButtonVue v-show="showEditButton" + type="tertiary" :aria-label="t('spreed', 'Edit permissions')" - class="nc-button nc-button__main" @click="showPermissionsEditor = true"> - <Pencil :size="20" /> - </button> + <template #icon> + <Pencil :size="20" /> + </template> + </ButtonVue> </div> <PermissionEditor v-if="showPermissionsEditor" :conversation-name="conversationName" @@ -84,6 +86,7 @@ <script> import PermissionEditor from '../PermissionsEditor/PermissionsEditor.vue' +import ButtonVue from '@nextcloud/vue/dist/Components/Button' import CheckboxRadioSwitch from '@nextcloud/vue/dist/Components/CheckboxRadioSwitch' import Pencil from 'vue-material-design-icons/Pencil.vue' import { PARTICIPANT } from '../../constants.js' @@ -96,6 +99,7 @@ export default { components: { PermissionEditor, + ButtonVue, CheckboxRadioSwitch, Pencil, }, |