fix(mute-block): delete is danger action

This commit is contained in:
オスカー、 2024-12-26 19:13:34 +09:00
parent b10ea1b79f
commit 9cdfddddb0
Signed by: SWREI
GPG Key ID: 8947F3AF5B0B4BFE

View File

@ -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);