Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-28 00:07:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-28 00:07:53 +0300
commitf50b93c373428d624cc2cabe98e4022dce846e67 (patch)
tree0349e25d3d106aabd6b520afa96ebd35578ab38b /app/assets/javascripts/clusters/components
parente20baee820ea2c76ee16980a98e8080f255d9035 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/clusters/components')
-rw-r--r--app/assets/javascripts/clusters/components/ingress_modsecurity_settings.vue12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/assets/javascripts/clusters/components/ingress_modsecurity_settings.vue b/app/assets/javascripts/clusters/components/ingress_modsecurity_settings.vue
index 6b9a926143d..e4bc00fc102 100644
--- a/app/assets/javascripts/clusters/components/ingress_modsecurity_settings.vue
+++ b/app/assets/javascripts/clusters/components/ingress_modsecurity_settings.vue
@@ -93,7 +93,10 @@ export default {
return [UPDATING].includes(this.ingress.status);
},
saveButtonDisabled() {
- return [UNINSTALLING, UPDATING, INSTALLING].includes(this.ingress.status);
+ return (
+ [UNINSTALLING, UPDATING, INSTALLING].includes(this.ingress.status) ||
+ this.ingress.updateAvailable
+ );
},
saveButtonLabel() {
return this.saving ? __('Saving') : __('Save changes');
@@ -105,13 +108,14 @@ export default {
* neither getting installed nor updated.
*/
showButtons() {
- return (
- this.saving || (this.hasValueChanged && [INSTALLED, UPDATED].includes(this.ingress.status))
- );
+ return this.saving || this.valuesChangedByUser;
},
modSecurityModeName() {
return this.modes[this.ingress.modsecurity_mode].name;
},
+ valuesChangedByUser() {
+ return this.hasValueChanged && [INSTALLED, UPDATED].includes(this.ingress.status);
+ },
},
methods: {
updateApplication() {