update
This commit is contained in:
parent
9a572eb9f5
commit
5672fecaf2
|
@ -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,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue