mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			397 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			397 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import Ember from 'ember';
 | |
| 
 | |
| export default Ember.Component.extend({
 | |
|   threshold: null,
 | |
|   progress: null,
 | |
|   classNames: ['shamir-progress'],
 | |
|   progressPercent: Ember.computed('threshold', 'progress', function() {
 | |
|     const { threshold, progress } = this.getProperties('threshold', 'progress');
 | |
|     if (threshold && progress) {
 | |
|       return progress / threshold * 100;
 | |
|     }
 | |
|     return 0;
 | |
|   }),
 | |
| });
 | 
