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
		
			
				
	
	
		
			16 lines
		
	
	
		
			413 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			413 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import Ember from 'ember';
 | |
| const { computed } = Ember;
 | |
| 
 | |
| export default Ember.Component.extend({
 | |
|   threshold: null,
 | |
|   progress: null,
 | |
|   classNames: ['shamir-progress'],
 | |
|   progressDecimal: computed('threshold', 'progress', function() {
 | |
|     const { threshold, progress } = this.getProperties('threshold', 'progress');
 | |
|     if (threshold && progress) {
 | |
|       return progress / threshold;
 | |
|     }
 | |
|     return 0;
 | |
|   }),
 | |
| });
 |