Plugins: Hide extensions menu when editing a panel (#65840)

Plugins: Hide extensions menu when editing a panel
This commit is contained in:
Jack Westbrook 2023-04-03 17:00:21 +02:00 committed by GitHub
parent b86c0bc4fa
commit 30b5b8d984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,7 @@ export function getPanelMenu(
context: createExtensionContext(panel, dashboard),
});
if (extensions.length > 0) {
if (extensions.length > 0 && !panel.isEditing) {
const extensionsMenu: PanelMenuItem[] = [];
for (const extension of extensions) {