Commit 0edeb3ca authored by Tom Quirk's avatar Tom Quirk

Fix disabled state on integration save button

Use Vue key prop on gl-button to force an update
when the `disabled` state changes.
parent eb411321
...@@ -59,6 +59,9 @@ export default { ...@@ -59,6 +59,9 @@ export default {
showReset() { showReset() {
return this.isInstanceOrGroupLevel && this.propsSource.resetPath; return this.isInstanceOrGroupLevel && this.propsSource.resetPath;
}, },
saveButtonKey() {
return `save-button-${this.isDisabled}`;
},
}, },
methods: { methods: {
...mapActions([ ...mapActions([
...@@ -117,6 +120,7 @@ export default { ...@@ -117,6 +120,7 @@ export default {
<div v-if="isEditable" class="footer-block row-content-block"> <div v-if="isEditable" class="footer-block row-content-block">
<template v-if="isInstanceOrGroupLevel"> <template v-if="isInstanceOrGroupLevel">
<gl-button <gl-button
:key="saveButtonKey"
v-gl-modal.confirmSaveIntegration v-gl-modal.confirmSaveIntegration
category="primary" category="primary"
variant="success" variant="success"
...@@ -130,6 +134,7 @@ export default { ...@@ -130,6 +134,7 @@ export default {
</template> </template>
<gl-button <gl-button
v-else v-else
:key="saveButtonKey"
category="primary" category="primary"
variant="success" variant="success"
type="submit" type="submit"
......
---
title: Resolve Save button should have a different color on press
merge_request: 48975
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment