implemented status visibility change
This commit is contained in:
parent
aa0cef12b1
commit
19d8875196
16 changed files with 225 additions and 98 deletions
|
|
@ -243,6 +243,26 @@ export const BUTTONS = [
|
|||
return dispatch('deleteStatus', { id: status.id })
|
||||
},
|
||||
},
|
||||
{
|
||||
// =========
|
||||
// CHANGE SCOPE
|
||||
// =========
|
||||
name: 'changeScope',
|
||||
icon: 'eye',
|
||||
label: 'status.admin_change_scope',
|
||||
if({ status, loggedIn, currentUser }) {
|
||||
return (
|
||||
loggedIn &&
|
||||
(status.user.id === currentUser.id ||
|
||||
currentUser.privileges.has('messages_delete'))
|
||||
)
|
||||
},
|
||||
toggleable: false,
|
||||
dropdown: true,
|
||||
action({ status, dispatch, emit }) {
|
||||
/* prevent hiding */
|
||||
},
|
||||
},
|
||||
{
|
||||
// =========
|
||||
// SHARE/COPY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue