This commit is contained in:
mattyatea 2024-05-12 02:11:18 +09:00
parent 9a572eb9f5
commit 5672fecaf2
1 changed files with 3 additions and 10 deletions

View File

@ -127,17 +127,10 @@ async function setCategoryBulk() {
}
async function deletes() {
const { canceled, result } = await os.inputText({
title: 'Category',
});
if (canceled) return;
if (selectItemsId.value.length > 1) {
if (selectItemsId.value.length > 0) {
for (let i = 0; i < selectItemsId.value.length; i++) {
let decorationId = selectItemsId.value[i];
await misskeyApi('admin/avatar-decorations/delete', {
id: decorationId,
category: result,
});
let decoration = selectItemsId.value[i];
del(decoration);
}
}
}