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
		
			
				
	
	
		
			43 lines
		
	
	
		
			926 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			926 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import Ember from 'ember';
 | |
| 
 | |
| const { computed } = Ember;
 | |
| 
 | |
| export default Ember.Component.extend({
 | |
|   modalContainer: computed(function() {
 | |
|     return document.getElementById('modal-wormhole');
 | |
|   }),
 | |
|   isAnimated: false,
 | |
|   isActive: false,
 | |
|   tagName: 'span',
 | |
|   trackingSource: computed('pageName', function() {
 | |
|     let trackingSource = 'vaultui';
 | |
|     let pageName = this.get('pageName');
 | |
|     if (pageName) {
 | |
|       trackingSource = trackingSource + '_' + encodeURIComponent(pageName);
 | |
|     }
 | |
|     return trackingSource;
 | |
|   }),
 | |
|   actions: {
 | |
|     openOverlay() {
 | |
|       this.set('isActive', true);
 | |
|       Ember.run.later(
 | |
|         this,
 | |
|         function() {
 | |
|           this.set('isAnimated', true);
 | |
|         },
 | |
|         10
 | |
|       );
 | |
|     },
 | |
|     closeOverlay() {
 | |
|       this.set('isAnimated', false);
 | |
|       Ember.run.later(
 | |
|         this,
 | |
|         function() {
 | |
|           this.set('isActive', false);
 | |
|         },
 | |
|         300
 | |
|       );
 | |
|     },
 | |
|   },
 | |
| });
 |