make admin settings modal available on mobile

This commit is contained in:
Henry Jameson 2023-05-24 12:00:16 +03:00
parent b3d0360699
commit cbd22d52b8
2 changed files with 8 additions and 5 deletions

View File

@ -115,7 +115,10 @@ const SideDrawer = {
GestureService.updateSwipe(e, this.closeGesture) GestureService.updateSwipe(e, this.closeGesture)
}, },
openSettingsModal () { openSettingsModal () {
this.$store.dispatch('openSettingsModal') this.$store.dispatch('openSettingsModal', 'user')
},
openAdminModal () {
this.$store.dispatch('openSettingsModal', 'admin')
} }
} }
} }

View File

@ -180,16 +180,16 @@
v-if="currentUser && currentUser.role === 'admin'" v-if="currentUser && currentUser.role === 'admin'"
@click="toggleDrawer" @click="toggleDrawer"
> >
<a <button
href="/pleroma/admin/#/login-pleroma" class="button-unstyled -link -fullwidth"
target="_blank" @click.stop="openAdminModal"
> >
<FAIcon <FAIcon
fixed-width fixed-width
class="fa-scale-110 fa-old-padding" class="fa-scale-110 fa-old-padding"
icon="tachometer-alt" icon="tachometer-alt"
/> {{ $t("nav.administration") }} /> {{ $t("nav.administration") }}
</a> </button>
</li> </li>
<li <li
v-if="currentUser && supportsAnnouncements" v-if="currentUser && supportsAnnouncements"