mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
Avatar Gallery Order
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user