From c35473f308eb8a5f19601ef0b35b2d44eda5b93b Mon Sep 17 00:00:00 2001 From: Prabhat Khera <91852476+prabhat-org@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:15:31 +1300 Subject: [PATCH] fix(kube-stacks): change wordings [EE-6670] (#11334) --- app/kubernetes/converters/deployment.js | 4 +++- .../views/applications/create/createApplication.html | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/kubernetes/converters/deployment.js b/app/kubernetes/converters/deployment.js index d7dfa6d0d..5b391cd01 100644 --- a/app/kubernetes/converters/deployment.js +++ b/app/kubernetes/converters/deployment.js @@ -22,7 +22,9 @@ class KubernetesDeploymentConverter { const res = new KubernetesDeployment(); res.Namespace = formValues.ResourcePool.Namespace.Name; res.Name = formValues.Name; - res.StackName = formValues.StackName ? formValues.StackName : formValues.Name; + if (formValues.StackName) { + res.StackName = formValues.StackName; + } res.ApplicationOwner = formValues.ApplicationOwner; res.ApplicationName = formValues.Name; res.ReplicaCount = formValues.ReplicaCount; diff --git a/app/kubernetes/views/applications/create/createApplication.html b/app/kubernetes/views/applications/create/createApplication.html index 6298345da..a503bdc01 100644 --- a/app/kubernetes/views/applications/create/createApplication.html +++ b/app/kubernetes/views/applications/create/createApplication.html @@ -169,7 +169,7 @@ ng-if="!ctrl.deploymentOptions.hideStacksFunctionality && ctrl.state.appType !== ctrl.KubernetesDeploymentTypes.APPLICATION_FORM" stack-name="ctrl.formValues.StackName" set-stack-name="(ctrl.onChangeStackName)" - text-tip="'Portainer can automatically bundle multiple applications inside a stack. Enter a name of a new stack or select an existing stack in the list. Leave empty to use the application name.'" + text-tip="'Enter or select a \'stack\' name to group multiple deployments together, or else leave empty to ignore.'" stacks="ctrl.stacks" input-class-name="'col-lg-10 col-sm-9'" > @@ -231,7 +231,7 @@ ng-if="!ctrl.deploymentOptions.hideStacksFunctionality" stack-name="ctrl.formValues.StackName" set-stack-name="(ctrl.onChangeStackName)" - text-tip="'Portainer can automatically bundle multiple applications inside a stack. Enter a name of a new stack or select an existing stack in the list. Leave empty to use the application name.'" + text-tip="'Enter or select a \'stack\' name to group multiple deployments together, or else leave empty to ignore.'" stacks="ctrl.stacks" input-class-name="'col-lg-10 col-sm-9'" >