open-vault/ui/app/components/upgrade-link.js
2018-04-03 09:16:57 -05:00

30 lines
533 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
isAnimated: false,
isActive: false,
tagName: 'span',
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
);
},
},
});