Add moderation button to side drawer
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
This commit is contained in:
parent
bdd970ca68
commit
bff34818bb
4 changed files with 23 additions and 16 deletions
|
@ -13,20 +13,6 @@
|
||||||
>
|
>
|
||||||
<ReportsTab />
|
<ReportsTab />
|
||||||
</div>
|
</div>
|
||||||
<!-- <div -->
|
|
||||||
<!-- :label="$t('moderation.users')" -->
|
|
||||||
<!-- icon="users" -->
|
|
||||||
<!-- data-tab-name="users" -->
|
|
||||||
<!-- > -->
|
|
||||||
<!-- <UsersTab /> -->
|
|
||||||
<!-- </div> -->
|
|
||||||
<!-- <div -->
|
|
||||||
<!-- :label="$t('moderation.statuses')" -->
|
|
||||||
<!-- icon="message" -->
|
|
||||||
<!-- data-tab-name="statuses" -->
|
|
||||||
<!-- > -->
|
|
||||||
<!-- <StatusesTab /> -->
|
|
||||||
<!-- </div> -->
|
|
||||||
</tab-switcher>
|
</tab-switcher>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,8 @@ import {
|
||||||
faTachometerAlt,
|
faTachometerAlt,
|
||||||
faCog,
|
faCog,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
faList
|
faList,
|
||||||
|
faUserTie
|
||||||
} from '@fortawesome/free-solid-svg-icons'
|
} from '@fortawesome/free-solid-svg-icons'
|
||||||
|
|
||||||
library.add(
|
library.add(
|
||||||
|
@ -30,7 +31,8 @@ library.add(
|
||||||
faTachometerAlt,
|
faTachometerAlt,
|
||||||
faCog,
|
faCog,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
faList
|
faList,
|
||||||
|
faUserTie
|
||||||
)
|
)
|
||||||
|
|
||||||
const SideDrawer = {
|
const SideDrawer = {
|
||||||
|
@ -102,6 +104,9 @@ const SideDrawer = {
|
||||||
},
|
},
|
||||||
openSettingsModal () {
|
openSettingsModal () {
|
||||||
this.$store.dispatch('openSettingsModal')
|
this.$store.dispatch('openSettingsModal')
|
||||||
|
},
|
||||||
|
openModModal () {
|
||||||
|
this.$store.dispatch('openModModal')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,6 +143,21 @@
|
||||||
/> {{ $t("nav.about") }}
|
/> {{ $t("nav.about") }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
|
<li
|
||||||
|
v-if="currentUser && currentUser.role === 'admin' || currentUser.role === 'moderator'"
|
||||||
|
@click="toggleDrawer"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
class="button-unstyled -link -fullwidth"
|
||||||
|
@click="openModModal"
|
||||||
|
>
|
||||||
|
<FAIcon
|
||||||
|
fixed-width
|
||||||
|
class="fa-scale-110 fa-old-padding"
|
||||||
|
icon="user-tie"
|
||||||
|
/> {{ $t("nav.moderation") }}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
<li
|
<li
|
||||||
v-if="currentUser && currentUser.role === 'admin'"
|
v-if="currentUser && currentUser.role === 'admin'"
|
||||||
@click="toggleDrawer"
|
@click="toggleDrawer"
|
||||||
|
|
|
@ -307,6 +307,7 @@
|
||||||
"interactions": "Interactions",
|
"interactions": "Interactions",
|
||||||
"lists": "Lists",
|
"lists": "Lists",
|
||||||
"mentions": "Mentions",
|
"mentions": "Mentions",
|
||||||
|
"moderation": "Moderation",
|
||||||
"preferences": "Preferences",
|
"preferences": "Preferences",
|
||||||
"public_timeline_description": "Public posts from this instance",
|
"public_timeline_description": "Public posts from this instance",
|
||||||
"public_tl": "Public timeline",
|
"public_tl": "Public timeline",
|
||||||
|
|
Loading…
Reference in a new issue