frontend-plugin-api: do not default page icon and title to plugin values
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -274,7 +274,6 @@ describe('PageBlueprint', () => {
|
||||
"core.reactElement",
|
||||
"core.routing.path",
|
||||
"core.routing.ref",
|
||||
"core.title",
|
||||
],
|
||||
}
|
||||
`);
|
||||
|
||||
@@ -84,12 +84,8 @@ export const PageBlueprint = createExtensionBlueprint({
|
||||
},
|
||||
{ config, node, inputs },
|
||||
) {
|
||||
const title =
|
||||
config.title ??
|
||||
params.title ??
|
||||
node.spec.plugin.title ??
|
||||
node.spec.plugin.pluginId;
|
||||
const icon = params.icon ?? node.spec.plugin.icon;
|
||||
const title = config.title ?? params.title;
|
||||
const icon = params.icon;
|
||||
const pluginId = node.spec.plugin.pluginId;
|
||||
const noHeader = params.noHeader ?? false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user