mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	UI ember engines (#6718)
Adds replication engine and core in-repo addon
This commit is contained in:
		
							
								
								
									
										16
									
								
								ui/lib/replication/addon/controllers/replication-mode.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								ui/lib/replication/addon/controllers/replication-mode.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| import { alias } from '@ember/object/computed'; | ||||
| import { inject as service } from '@ember/service'; | ||||
| import Controller from '@ember/controller'; | ||||
|  | ||||
| export default Controller.extend({ | ||||
|   rm: service('replication-mode'), | ||||
|   replicationMode: alias('rm.mode'), | ||||
|   actions: { | ||||
|     onEnable(mode) { | ||||
|       return this.transitionToRoute('mode', mode); | ||||
|     }, | ||||
|     onDisable() { | ||||
|       return this.transitionToRoute('index'); | ||||
|     }, | ||||
|   }, | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user
	 Matthew Irish
					Matthew Irish