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