mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Improved content menu
This commit is contained in:
parent
9602632ddf
commit
d44fbcc594
@ -30,7 +30,7 @@
|
||||
@click.stop.prevent="openItem(item.route, toggleMenu)"
|
||||
>
|
||||
<ds-icon :name="item.route.icon" />
|
||||
{{ $t(`report.${context}.title`) }}
|
||||
{{ item.route.name }}
|
||||
</ds-menu-item>
|
||||
</ds-menu>
|
||||
</div>
|
||||
@ -60,19 +60,22 @@ export default {
|
||||
routes() {
|
||||
let routes = [
|
||||
{
|
||||
name: this.$t('common.reportContent'),
|
||||
name: this.$t(`report.${this.context}.title`),
|
||||
callback: this.openReportDialog,
|
||||
icon: 'flag'
|
||||
}
|
||||
]
|
||||
// if (this.isAdmin) {
|
||||
// routes.push({
|
||||
// name: this.$t('admin.name'),
|
||||
// path: `/admin`,
|
||||
// icon: 'shield'
|
||||
// })
|
||||
// }
|
||||
if (this.isModerator) {
|
||||
routes.push({
|
||||
name: this.$t(`disable.${this.context}.title`),
|
||||
callback: this.openDisableDialog,
|
||||
icon: 'eye-slash'
|
||||
})
|
||||
}
|
||||
return routes
|
||||
},
|
||||
isModerator() {
|
||||
return this.$store.getters['auth/isModerator']
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -93,6 +96,9 @@ export default {
|
||||
name: this.name
|
||||
}
|
||||
})
|
||||
},
|
||||
openDisableDialog() {
|
||||
this.$toast.error('NOT IMPLEMENTED!')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -88,6 +88,23 @@
|
||||
"reporter": "gemeldet von"
|
||||
}
|
||||
},
|
||||
"disable": {
|
||||
"user": {
|
||||
"title": "Nutzer sperren",
|
||||
"type": "Nutzer",
|
||||
"message": "Bist du sicher, dass du den Nutzer \"<b>{name}</b>\" deaktivieren möchtest?"
|
||||
},
|
||||
"contribution": {
|
||||
"title": "Beitrag sperren",
|
||||
"type": "Beitrag",
|
||||
"message": "Bist du sicher, dass du den Beitrag \"<b>{name}</b>\" deaktivieren möchtest?"
|
||||
},
|
||||
"comment": {
|
||||
"title": "Kommentar sperren",
|
||||
"type": "Kommentar",
|
||||
"message": "Bist du sicher, dass du den Kommentar \"<b>{name}</b>\" deaktivieren möchtest?"
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"name": "Beitrag",
|
||||
"moreInfo": {
|
||||
|
||||
@ -88,6 +88,23 @@
|
||||
"reporter": "reported by"
|
||||
}
|
||||
},
|
||||
"disable": {
|
||||
"user": {
|
||||
"title": "Disable User",
|
||||
"type": "User",
|
||||
"message": "Do you really want to disable the user \"<b>{name}</b>\"?"
|
||||
},
|
||||
"contribution": {
|
||||
"title": "Disable Contribution",
|
||||
"type": "Contribution",
|
||||
"message": "Do you really want to disable the contribution \"<b>{name}</b>\"?"
|
||||
},
|
||||
"comment": {
|
||||
"title": "Disable Comment",
|
||||
"type": "Comment",
|
||||
"message": "Do you really want to disable the comment from \"<b>{name}</b>\"?"
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"name": "Post",
|
||||
"moreInfo": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user