mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	 c8b64523ee
			
		
	
	c8b64523ee
	
	
	
		
			
			* add NavHeader component * use NavHeader in SplashPage component and application.hbs * let download button take a block * add RadialProgress component * use RadialProgress in ShamirFlow component * style up the RadialProgress component * update ember-basic-dropdown, ember-basic-dropdown-hover * rework operation token generation workflow * directly depend on ember-maybe-in-element
		
			
				
	
	
		
			25 lines
		
	
	
		
			688 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			688 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import Ember from 'ember';
 | |
| 
 | |
| const { inject, computed } = Ember;
 | |
| 
 | |
| export default Ember.Component.extend({
 | |
|   currentCluster: inject.service('current-cluster'),
 | |
|   cluster: computed.alias('currentCluster.cluster'),
 | |
|   auth: inject.service(),
 | |
|   type: 'cluster',
 | |
|   itemTag: null,
 | |
|   partialName: computed('type', function() {
 | |
|     let type = this.get('type');
 | |
|     let partial = type === 'replication-status' ? 'replication' : type;
 | |
|     return `partials/status/${partial}`;
 | |
|   }),
 | |
|   glyphName: computed('type', function() {
 | |
|     const glyphs = {
 | |
|       cluster: 'unlocked',
 | |
|       user: 'android-person',
 | |
|       'replication-status': 'replication',
 | |
|     };
 | |
|     return glyphs[this.get('type')];
 | |
|   }),
 | |
| });
 |