diff --git a/changelog/24292.txt b/changelog/24292.txt new file mode 100644 index 000000000..784e2e38f --- /dev/null +++ b/changelog/24292.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix payload sent when disabling replication +``` diff --git a/ui/lib/core/addon/components/replication-action-disable.js b/ui/lib/core/addon/components/replication-action-disable.js index a0bf58363..2fe96af2f 100644 --- a/ui/lib/core/addon/components/replication-action-disable.js +++ b/ui/lib/core/addon/components/replication-action-disable.js @@ -9,4 +9,11 @@ import layout from '../templates/components/replication-action-disable'; export default Actions.extend({ layout, tagName: '', + + actions: { + onSubmit(replicationMode, clusterMode, evt) { + // No data is submitted for disable request + return this.onSubmit(replicationMode, clusterMode, null, evt); + }, + }, }); diff --git a/ui/lib/core/addon/templates/components/replication-action-disable.hbs b/ui/lib/core/addon/templates/components/replication-action-disable.hbs index 733f129b9..55a54cdce 100644 --- a/ui/lib/core/addon/templates/components/replication-action-disable.hbs +++ b/ui/lib/core/addon/templates/components/replication-action-disable.hbs @@ -28,8 +28,8 @@ @isActive={{this.isModalActive}} @confirmText={{this.model.replicationModeForDisplay}} @toConfirmMsg="disabling {{this.model.replicationModeForDisplay}} Replication on this cluster" - @onConfirm={{action - "onSubmit" + @onConfirm={{fn + (action "onSubmit") "disable" (if (eq this.model.replicationAttrs.modeForUrl "bootstrapping") this.mode this.model.replicationAttrs.modeForUrl) }}