mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 13:29:31 +02:00
See #170: admin UI for channels, reporting channels
This commit is contained in:
parent
ae52969efe
commit
102c90d499
32 changed files with 1106 additions and 77 deletions
|
@ -179,6 +179,7 @@ export default {
|
|||
label: this.$pgettext('*/*/*/Noun', 'Account'),
|
||||
icon: 'user',
|
||||
urls: {
|
||||
getDetail: (obj) => { return {name: 'profile.full.overview', params: {username: obj.preferred_username, domain: obj.domain}}},
|
||||
getAdminDetail: (obj) => { return {name: 'manage.moderation.accounts.detail', params: {id: `${obj.preferred_username}@${obj.domain}`}}}
|
||||
},
|
||||
moderatedFields: [
|
||||
|
@ -194,6 +195,33 @@ export default {
|
|||
},
|
||||
]
|
||||
},
|
||||
channel: {
|
||||
label: this.$pgettext('*/*/*', 'Channel'),
|
||||
icon: 'stream',
|
||||
urls: {
|
||||
getDetail: (obj) => { return {name: 'channels.detail', params: {id: obj.uuid}}},
|
||||
getAdminDetail: (obj) => { return {name: 'manage.channels.detail', params: {id: obj.uuid}}}
|
||||
},
|
||||
moderatedFields: [
|
||||
{
|
||||
id: 'name',
|
||||
label: this.$pgettext('*/*/*/Noun', 'Name'),
|
||||
getValue: (obj) => { return obj.name }
|
||||
},
|
||||
{
|
||||
id: 'creation_date',
|
||||
label: this.$pgettext('Content/*/*/Noun', 'Creation date'),
|
||||
getValue: (obj) => { return obj.creation_date }
|
||||
},
|
||||
{
|
||||
id: 'tags',
|
||||
type: 'tags',
|
||||
label: this.$pgettext('*/*/*/Noun', 'Tags'),
|
||||
getValue: (obj) => { return obj.tags },
|
||||
getValueRepr: getTagsValueRepr
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue