mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Use displayName in ctb menu and listview header
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
3ad3432a67
commit
fe5b80f236
@ -133,7 +133,7 @@ const sortContentType = types =>
|
||||
.map(uid => ({
|
||||
visible: types[uid].schema.visible,
|
||||
name: uid,
|
||||
title: types[uid].schema.name,
|
||||
title: types[uid].schema.displayName,
|
||||
plugin: types[uid].plugin || null,
|
||||
uid,
|
||||
to: `/plugins/${pluginId}/content-types/${uid}`,
|
||||
|
@ -80,7 +80,10 @@ const ListView = () => {
|
||||
});
|
||||
};
|
||||
|
||||
let label = get(modifiedData, [firstMainDataPath, 'schema', 'name'], '');
|
||||
// TODO: fixme
|
||||
let label = isInContentTypeView
|
||||
? get(modifiedData, [firstMainDataPath, 'schema', 'displayName'], '')
|
||||
: get(modifiedData, [firstMainDataPath, 'schema', 'name'], '');
|
||||
const kind = get(modifiedData, [firstMainDataPath, 'schema', 'kind'], '');
|
||||
|
||||
const isCreatingFirstContentType = match?.params.currentUID === 'create-content-type';
|
||||
|
Loading…
x
Reference in New Issue
Block a user