diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2021-05-31 11:15:44 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2021-05-31 11:15:44 +0000 |
| commit | 0ca0e642a43a75f8e903db7361158ad32b84ecc4 (patch) | |
| tree | fd96ac1da4e8b463cc3094dfdf4c88103179c673 /src/components/moderation_tools | |
| parent | 4e96af044224dc10b8cc4eb270e025f1b8a1d29a (diff) | |
| parent | 80220c1b07436098a8d87ffc0fc49fadc79ac9a4 (diff) | |
Merge branch 'v-slot-upgrade' into 'develop'
Change old slot syntax (removed in vue3) to new one
See merge request pleroma/pleroma-fe!1379
Diffstat (limited to 'src/components/moderation_tools')
| -rw-r--r-- | src/components/moderation_tools/moderation_tools.vue | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/components/moderation_tools/moderation_tools.vue b/src/components/moderation_tools/moderation_tools.vue index c4c6ee46..96476abe 100644 --- a/src/components/moderation_tools/moderation_tools.vue +++ b/src/components/moderation_tools/moderation_tools.vue @@ -8,7 +8,7 @@ @show="setToggled(true)" @close="setToggled(false)" > - <div slot="content"> + <template v-slot:content> <div class="dropdown-menu"> <span v-if="user.is_local"> <button @@ -121,26 +121,27 @@ </button> </span> </div> - </div> - <button - slot="trigger" - class="btn button-default btn-block moderation-tools-button" - :class="{ toggled }" - > - {{ $t('user_card.admin_menu.moderation') }} - <FAIcon icon="chevron-down" /> - </button> + </template> + <template v-slot:trigger> + <button + class="btn button-default btn-block moderation-tools-button" + :class="{ toggled }" + > + {{ $t('user_card.admin_menu.moderation') }} + <FAIcon icon="chevron-down" /> + </button> + </template> </Popover> <portal to="modal"> <DialogModal v-if="showDeleteUserDialog" :on-cancel="deleteUserDialog.bind(this, false)" > - <template slot="header"> + <template v-slot:header> {{ $t('user_card.admin_menu.delete_user') }} </template> <p>{{ $t('user_card.admin_menu.delete_user_confirmation') }}</p> - <template slot="footer"> + <template v-slot:footer> <button class="btn button-default" @click="deleteUserDialog(false)" |
