mirror of
https://github.com/directus/directus.git
synced 2026-02-16 07:14:57 -05:00
Unify & translate initial role/user detail in init & bootstrap command (#10493)
* Unify initial role/user detail in init & bootstrap * translate role descriptions * translate data from system collections
This commit is contained in:
@@ -66,6 +66,7 @@ import { Header as TableHeader } from '@/components/v-table/types';
|
||||
import ValueNull from '@/views/private/components/value-null';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { unexpectedError } from '@/utils/unexpected-error';
|
||||
import { translate } from '@/utils/translate-object-values';
|
||||
|
||||
type Role = {
|
||||
id: number;
|
||||
@@ -155,7 +156,7 @@ export default defineComponent({
|
||||
},
|
||||
...response.data.data.map((role: any) => {
|
||||
return {
|
||||
...role,
|
||||
...translate(role),
|
||||
count: role.users[0]?.count.id || 0,
|
||||
};
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user