mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
d957f52508
no issue - replace instances of `this.get('action')()` with ember-invoke-action syntax
12 lines
310 B
JavaScript
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');
|
|
}
|
|
}
|
|
});
|