mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
UI: Prevent replication disable action from sending data payload (#24292)
* Prevent replication disable action from sending data payload * Add changelog
This commit is contained in:
parent
31f399d147
commit
b0ed4297bf
3 changed files with 12 additions and 2 deletions
3
changelog/24292.txt
Normal file
3
changelog/24292.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
ui: Fix payload sent when disabling replication
|
||||
```
|
||||
|
|
@ -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);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -31,8 +31,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)
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue