mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
Extensions: Moved the "Extensions" menu item so the "More..." is displayed last in the panel menu. (#68372)
Moved the extensions before the more option.
This commit is contained in:
parent
18aba61cbd
commit
58aa098ed7
@ -269,16 +269,6 @@ export function getPanelMenu(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subMenu.length) {
|
|
||||||
menu.push({
|
|
||||||
type: 'submenu',
|
|
||||||
text: t('panel.header-menu.more', `More...`),
|
|
||||||
iconClassName: 'cube',
|
|
||||||
subMenu,
|
|
||||||
onClick: onMore,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const { extensions } = getPluginExtensions({
|
const { extensions } = getPluginExtensions({
|
||||||
extensionPointId: PluginExtensionPoints.DashboardPanelMenu,
|
extensionPointId: PluginExtensionPoints.DashboardPanelMenu,
|
||||||
context: createExtensionContext(panel, dashboard),
|
context: createExtensionContext(panel, dashboard),
|
||||||
@ -306,6 +296,16 @@ export function getPanelMenu(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (subMenu.length) {
|
||||||
|
menu.push({
|
||||||
|
type: 'submenu',
|
||||||
|
text: t('panel.header-menu.more', `More...`),
|
||||||
|
iconClassName: 'cube',
|
||||||
|
subMenu,
|
||||||
|
onClick: onMore,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (dashboard.canEditPanel(panel) && !panel.isEditing && !panel.isViewing) {
|
if (dashboard.canEditPanel(panel) && !panel.isEditing && !panel.isViewing) {
|
||||||
menu.push({ type: 'divider', text: '' });
|
menu.push({ type: 'divider', text: '' });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user