Avatar Gallery Order

This commit is contained in:
Natsumi
2025-05-26 04:33:41 +10:00
parent df56b1d8b9
commit 2d58d3cbbd
5 changed files with 140 additions and 20 deletions

View File

@@ -215,6 +215,27 @@ const avatarReq = {
// window.API.$emit('AVATARGALLERYIMAGE:ADD', args);
return args;
});
},
/**
* @param {string[]} order
* @returns {Promise<{json: any, params}>}
*/
setAvatarGalleryOrder(order) {
const params = {
ids: order
};
return window.API.call('files/order', {
method: 'PUT',
params
}).then((json) => {
const args = {
json,
params
};
// window.API.$emit('AVATARGALLERYIMAGE:ORDER', args);
return args;
});
}
};
// #endregion