mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	backport of UI: prevent replication disable action from sending payload (#24296)
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
This commit is contained in:
		 hc-github-team-secure-vault-core
					hc-github-team-secure-vault-core
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							46bcae656a
						
					
				
				
					commit
					28eff53afe
				
			
							
								
								
									
										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({ | export default Actions.extend({ | ||||||
|   layout, |   layout, | ||||||
|   tagName: '', |   tagName: '', | ||||||
|  |  | ||||||
|  |   actions: { | ||||||
|  |     onSubmit(replicationMode, clusterMode, evt) { | ||||||
|  |       // No data is submitted for disable request | ||||||
|  |       return this.onSubmit(replicationMode, clusterMode, null, evt); | ||||||
|  |     }, | ||||||
|  |   }, | ||||||
| }); | }); | ||||||
|   | |||||||
| @@ -28,8 +28,8 @@ | |||||||
|   @isActive={{this.isModalActive}} |   @isActive={{this.isModalActive}} | ||||||
|   @confirmText={{this.model.replicationModeForDisplay}} |   @confirmText={{this.model.replicationModeForDisplay}} | ||||||
|   @toConfirmMsg="disabling {{this.model.replicationModeForDisplay}} Replication on this cluster" |   @toConfirmMsg="disabling {{this.model.replicationModeForDisplay}} Replication on this cluster" | ||||||
|   @onConfirm={{action |   @onConfirm={{fn | ||||||
|     "onSubmit" |     (action "onSubmit") | ||||||
|     "disable" |     "disable" | ||||||
|     (if (eq this.model.replicationAttrs.modeForUrl "bootstrapping") this.mode this.model.replicationAttrs.modeForUrl) |     (if (eq this.model.replicationAttrs.modeForUrl "bootstrapping") this.mode this.model.replicationAttrs.modeForUrl) | ||||||
|   }} |   }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user