|
|
@ -38,6 +38,7 @@ class KubernetesCreateApplicationController {
|
|
|
|
$async,
|
|
|
|
$async,
|
|
|
|
$state,
|
|
|
|
$state,
|
|
|
|
$timeout,
|
|
|
|
$timeout,
|
|
|
|
|
|
|
|
$window,
|
|
|
|
Notifications,
|
|
|
|
Notifications,
|
|
|
|
Authentication,
|
|
|
|
Authentication,
|
|
|
|
KubernetesResourcePoolService,
|
|
|
|
KubernetesResourcePoolService,
|
|
|
@ -58,6 +59,7 @@ class KubernetesCreateApplicationController {
|
|
|
|
this.$async = $async;
|
|
|
|
this.$async = $async;
|
|
|
|
this.$state = $state;
|
|
|
|
this.$state = $state;
|
|
|
|
this.$timeout = $timeout;
|
|
|
|
this.$timeout = $timeout;
|
|
|
|
|
|
|
|
this.$window = $window;
|
|
|
|
this.Notifications = Notifications;
|
|
|
|
this.Notifications = Notifications;
|
|
|
|
this.Authentication = Authentication;
|
|
|
|
this.Authentication = Authentication;
|
|
|
|
this.KubernetesResourcePoolService = KubernetesResourcePoolService;
|
|
|
|
this.KubernetesResourcePoolService = KubernetesResourcePoolService;
|
|
|
@ -157,6 +159,7 @@ class KubernetesCreateApplicationController {
|
|
|
|
this.refreshReactComponent = this.refreshReactComponent.bind(this);
|
|
|
|
this.refreshReactComponent = this.refreshReactComponent.bind(this);
|
|
|
|
this.onChangeNamespaceName = this.onChangeNamespaceName.bind(this);
|
|
|
|
this.onChangeNamespaceName = this.onChangeNamespaceName.bind(this);
|
|
|
|
this.canSupportSharedAccess = this.canSupportSharedAccess.bind(this);
|
|
|
|
this.canSupportSharedAccess = this.canSupportSharedAccess.bind(this);
|
|
|
|
|
|
|
|
this.isUpdateApplicationViaWebEditorButtonDisabled = this.isUpdateApplicationViaWebEditorButtonDisabled.bind(this);
|
|
|
|
|
|
|
|
|
|
|
|
this.$scope.$watch(
|
|
|
|
this.$scope.$watch(
|
|
|
|
() => this.formValues,
|
|
|
|
() => this.formValues,
|
|
|
@ -255,7 +258,7 @@ class KubernetesCreateApplicationController {
|
|
|
|
{ stackFile: this.stackFileContent, stackName: this.formValues.StackName }
|
|
|
|
{ stackFile: this.stackFileContent, stackName: this.formValues.StackName }
|
|
|
|
);
|
|
|
|
);
|
|
|
|
this.state.isEditorDirty = false;
|
|
|
|
this.state.isEditorDirty = false;
|
|
|
|
await this.$state.reload(this.$state.current);
|
|
|
|
this.$window.location.reload();
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|
this.Notifications.error('Failure', err, 'Failed redeploying application');
|
|
|
|
this.Notifications.error('Failure', err, 'Failed redeploying application');
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
@ -643,6 +646,10 @@ class KubernetesCreateApplicationController {
|
|
|
|
return overflow || autoScalerOverflow || inProgress || invalid || hasNoChanges || nonScalable;
|
|
|
|
return overflow || autoScalerOverflow || inProgress || invalid || hasNoChanges || nonScalable;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isUpdateApplicationViaWebEditorButtonDisabled() {
|
|
|
|
|
|
|
|
return (this.savedFormValues.StackName === this.formValues.StackName && !this.state.isEditorDirty) || this.state.updateWebEditorInProgress;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
isExternalApplication() {
|
|
|
|
isExternalApplication() {
|
|
|
|
if (this.application) {
|
|
|
|
if (this.application) {
|
|
|
|
return KubernetesApplicationHelper.isExternalApplication(this.application);
|
|
|
|
return KubernetesApplicationHelper.isExternalApplication(this.application);
|
|
|
|