1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 05:49:40 +02:00

fix(app): redirect to app after edit [EE-6385] (#11772)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2024-05-14 13:34:28 +12:00 committed by GitHub
parent b6daee2850
commit 9dd9ffdb3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -263,7 +263,12 @@ class KubernetesCreateApplicationController {
{ stackFile: this.stackFileContent, stackName: this.formValues.StackName }
);
this.state.isEditorDirty = false;
this.$window.location.reload();
this.Notifications.success('Success', 'Request to update application successfully submitted');
this.$state.go(
'kubernetes.applications.application',
{ name: this.application.Name, namespace: this.application.ResourcePool, endpointId: this.endpoint.Id },
{ inherit: false }
);
} catch (err) {
this.Notifications.error('Failure', err, 'Failed redeploying application');
} finally {