enhance: ロールの並び順を設定可能に
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<MkSpacer :content-max="1200">
|
||||
<MkSpacer :content-max="700">
|
||||
<div class="_gaps_s">
|
||||
<MkRolePreview v-for="role in roles" :key="role.id" :role="role" :for-moderation="false"/>
|
||||
</div>
|
||||
@@ -13,10 +13,8 @@ import * as os from '@/os';
|
||||
|
||||
let roles = $ref();
|
||||
|
||||
os.api('roles/list', {
|
||||
limit: 30,
|
||||
}).then(res => {
|
||||
roles = res.filter(x => x.target === 'manual');
|
||||
os.api('roles/list').then(res => {
|
||||
roles = res.filter(x => x.target === 'manual').sort((a, b) => b.displayOrder - a.displayOrder);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user