mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +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 => ({
|
.map(uid => ({
|
||||||
visible: types[uid].schema.visible,
|
visible: types[uid].schema.visible,
|
||||||
name: uid,
|
name: uid,
|
||||||
title: types[uid].schema.name,
|
title: types[uid].schema.displayName,
|
||||||
plugin: types[uid].plugin || null,
|
plugin: types[uid].plugin || null,
|
||||||
uid,
|
uid,
|
||||||
to: `/plugins/${pluginId}/content-types/${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 kind = get(modifiedData, [firstMainDataPath, 'schema', 'kind'], '');
|
||||||
|
|
||||||
const isCreatingFirstContentType = match?.params.currentUID === 'create-content-type';
|
const isCreatingFirstContentType = match?.params.currentUID === 'create-content-type';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user