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)"
|
@click.stop.prevent="openItem(item.route, toggleMenu)"
|
||||||
>
|
>
|
||||||
<ds-icon :name="item.route.icon" />
|
<ds-icon :name="item.route.icon" />
|
||||||
{{ $t(`report.${context}.title`) }}
|
{{ item.route.name }}
|
||||||
</ds-menu-item>
|
</ds-menu-item>
|
||||||
</ds-menu>
|
</ds-menu>
|
||||||
</div>
|
</div>
|
||||||
@ -60,19 +60,22 @@ export default {
|
|||||||
routes() {
|
routes() {
|
||||||
let routes = [
|
let routes = [
|
||||||
{
|
{
|
||||||
name: this.$t('common.reportContent'),
|
name: this.$t(`report.${this.context}.title`),
|
||||||
callback: this.openReportDialog,
|
callback: this.openReportDialog,
|
||||||
icon: 'flag'
|
icon: 'flag'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
// if (this.isAdmin) {
|
if (this.isModerator) {
|
||||||
// routes.push({
|
routes.push({
|
||||||
// name: this.$t('admin.name'),
|
name: this.$t(`disable.${this.context}.title`),
|
||||||
// path: `/admin`,
|
callback: this.openDisableDialog,
|
||||||
// icon: 'shield'
|
icon: 'eye-slash'
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
return routes
|
return routes
|
||||||
|
},
|
||||||
|
isModerator() {
|
||||||
|
return this.$store.getters['auth/isModerator']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -93,6 +96,9 @@ export default {
|
|||||||
name: this.name
|
name: this.name
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
openDisableDialog() {
|
||||||
|
this.$toast.error('NOT IMPLEMENTED!')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,6 +88,23 @@
|
|||||||
"reporter": "gemeldet von"
|
"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": {
|
"post": {
|
||||||
"name": "Beitrag",
|
"name": "Beitrag",
|
||||||
"moreInfo": {
|
"moreInfo": {
|
||||||
|
|||||||
@ -88,6 +88,23 @@
|
|||||||
"reporter": "reported by"
|
"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": {
|
"post": {
|
||||||
"name": "Post",
|
"name": "Post",
|
||||||
"moreInfo": {
|
"moreInfo": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user