モデレーション周りのv11の機能復元 (#6249)

* モデレーション周りのv11の機能復元

* i18n

* wip

* wip

Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
This commit is contained in:
Satsuki Yanagi 2020-04-13 23:27:12 +09:00 committed by GitHub
parent 11cc9cbc7c
commit 63225ed0fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 409 additions and 149 deletions

View file

@ -561,13 +561,13 @@ export default Vue.extend({
}]
: []
),
...(this.appearNote.userId == this.$store.state.i.id ? [
...(this.appearNote.userId == this.$store.state.i.id || this.$store.state.i.isModerator || this.$store.state.i.isAdmin ? [
null,
{
this.appearNote.userId == this.$store.state.i.id ? {
icon: faEdit,
text: this.$t('deleteAndEdit'),
action: this.delEdit
},
} : undefined,
{
icon: faTrashAlt,
text: this.$t('delete'),