mirror of https://github.com/portainer/portainer
fix(app): disable deploy when there are no namespaces [EE-6295] (#10608)
* fix(app): hide services section when there are no namespaces [EE-6295] (#10588) Co-authored-by: testa113 <testa113> * fix(app): disable deploy when there are no namespaces [EE-6295] (#10606) Co-authored-by: testa113 <testa113> --------- Co-authored-by: Ali <83188384+testA113@users.noreply.github.com>pull/10632/head
parent
15df3277ca
commit
ddd30dd17a
|
@ -1302,6 +1302,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- kubernetes services options -->
|
<!-- kubernetes services options -->
|
||||||
|
<div ng-if="ctrl.formValues.ResourcePool">
|
||||||
<kube-services-form
|
<kube-services-form
|
||||||
on-change="(ctrl.onServicesChange)"
|
on-change="(ctrl.onServicesChange)"
|
||||||
values="ctrl.formValues.Services"
|
values="ctrl.formValues.Services"
|
||||||
|
@ -1312,6 +1313,7 @@
|
||||||
is-edit-mode="ctrl.state.isEdit"
|
is-edit-mode="ctrl.state.isEdit"
|
||||||
namespace="ctrl.formValues.ResourcePool.Namespace.Name"
|
namespace="ctrl.formValues.ResourcePool.Namespace.Name"
|
||||||
></kube-services-form>
|
></kube-services-form>
|
||||||
|
</div>
|
||||||
<!-- kubernetes services options -->
|
<!-- kubernetes services options -->
|
||||||
|
|
||||||
<!-- summary -->
|
<!-- summary -->
|
||||||
|
@ -1353,6 +1355,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- kubernetes services options -->
|
<!-- kubernetes services options -->
|
||||||
|
<div ng-if="ctrl.formValues.ResourcePool">
|
||||||
<kube-services-form
|
<kube-services-form
|
||||||
on-change="(ctrl.onServicesChange)"
|
on-change="(ctrl.onServicesChange)"
|
||||||
values="ctrl.formValues.Services"
|
values="ctrl.formValues.Services"
|
||||||
|
@ -1362,6 +1365,7 @@
|
||||||
is-edit-mode="ctrl.state.isEdit"
|
is-edit-mode="ctrl.state.isEdit"
|
||||||
namespace="ctrl.formValues.ResourcePool.Namespace.Name"
|
namespace="ctrl.formValues.ResourcePool.Namespace.Name"
|
||||||
></kube-services-form>
|
></kube-services-form>
|
||||||
|
</div>
|
||||||
<!-- kubernetes services options -->
|
<!-- kubernetes services options -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1376,7 +1380,7 @@
|
||||||
ng-if="ctrl.state.appType === ctrl.KubernetesDeploymentTypes.APPLICATION_FORM"
|
ng-if="ctrl.state.appType === ctrl.KubernetesDeploymentTypes.APPLICATION_FORM"
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-primary btn-sm !ml-0"
|
class="btn btn-primary btn-sm !ml-0"
|
||||||
ng-disabled="!kubernetesApplicationCreationForm.$valid || ctrl.isDeployUpdateButtonDisabled() || !ctrl.imageValidityIsValid() || ctrl.hasPortErrors()"
|
ng-disabled="!kubernetesApplicationCreationForm.$valid || ctrl.isDeployUpdateButtonDisabled() || !ctrl.imageValidityIsValid() || ctrl.hasPortErrors() || !ctrl.formValues.ResourcePool"
|
||||||
ng-click="ctrl.deployApplication()"
|
ng-click="ctrl.deployApplication()"
|
||||||
button-spinner="ctrl.state.actionInProgress"
|
button-spinner="ctrl.state.actionInProgress"
|
||||||
data-cy="k8sAppCreate-deployButton"
|
data-cy="k8sAppCreate-deployButton"
|
||||||
|
|
Loading…
Reference in New Issue