From 886f5d28ee86fb062c868a53e4d714fbe49cf48e Mon Sep 17 00:00:00 2001 From: Andre Dietisheim Date: Fri, 26 Jan 2024 15:54:18 +0100 Subject: [PATCH] offer 'Open Helm Charts' on project node (was: cluster)(#676) Signed-off-by: Andre Dietisheim --- .../openshift/actions/helm/OpenHelmChartsAction.java | 4 ++-- src/main/resources/META-INF/plugin.xml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/jboss/tools/intellij/openshift/actions/helm/OpenHelmChartsAction.java b/src/main/java/org/jboss/tools/intellij/openshift/actions/helm/OpenHelmChartsAction.java index 5e4f7adc5..3772b9305 100644 --- a/src/main/java/org/jboss/tools/intellij/openshift/actions/helm/OpenHelmChartsAction.java +++ b/src/main/java/org/jboss/tools/intellij/openshift/actions/helm/OpenHelmChartsAction.java @@ -15,6 +15,7 @@ import org.jboss.tools.intellij.openshift.actions.HelmAction; import org.jboss.tools.intellij.openshift.telemetry.TelemetryService; import org.jboss.tools.intellij.openshift.tree.application.ApplicationsRootNode; +import org.jboss.tools.intellij.openshift.tree.application.NamespaceNode; import org.jboss.tools.intellij.openshift.ui.helm.ChartsDialog; import org.jboss.tools.intellij.openshift.utils.helm.Helm; import org.jetbrains.annotations.NotNull; @@ -36,7 +37,6 @@ protected String getTelemetryActionName() { @Override public boolean isVisible(Object selected) { - return (selected instanceof ApplicationsRootNode) - && ((ApplicationsRootNode) selected).isLogged(); + return selected instanceof NamespaceNode; } } diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index c85fe1183..59c2dd819 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -282,9 +282,6 @@ - - - + + + +