fix(mute-block): delete is danger action
This commit is contained in:
parent
b10ea1b79f
commit
9cdfddddb0
@ -232,9 +232,9 @@ async function editMute(muting, ev) {
|
||||
}]), {
|
||||
text: i18n.ts.unmute,
|
||||
icon: 'ti ti-x',
|
||||
danger: true,
|
||||
action: async () => {
|
||||
await os.apiWithDialog('mute/delete', { userId: muting.mutee.id });
|
||||
//role.users = role.users.filter(u => u.id !== user.id);
|
||||
},
|
||||
}], ev.currentTarget ?? ev.target);
|
||||
}
|
||||
@ -243,6 +243,7 @@ async function unblock(user, ev) {
|
||||
os.popupMenu([{
|
||||
text: i18n.ts.unblock,
|
||||
icon: 'ti ti-x',
|
||||
danger: true,
|
||||
action: async () => {
|
||||
await os.apiWithDialog('blocking/delete', { userId: user.id });
|
||||
//role.users = role.users.filter(u => u.id !== user.id);
|
||||
|
Loading…
Reference in New Issue
Block a user