1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/components/gh-tag.js
Austin Burdine d957f52508 deps: ember-invoke-action@1.3.0
no issue
- replace instances of `this.get('action')()` with ember-invoke-action syntax
2016-04-26 16:32:17 -05:00

12 lines
310 B
JavaScript

import Ember from 'ember';
import {invokeAction} from 'ember-invoke-action';
export default Ember.Component.extend({
willDestroyElement() {
this._super(...arguments);
if (this.get('tag.isDeleted') && this.get('onDelete')) {
invokeAction(this, 'onDelete');
}
}
});