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