mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
6c7095a9ba
Closes #6390 - check if more posts should be loaded whenever one is deleted - delete dead code from posts controller - delete duplicate component gh-infinite-scroll-box - simplify posts-list-item `posts.post` or `editor.edit` link logic by modifying `gh-content-view-container` to yield necessary vars directly and use inline ifs in template - add `gh-tag` component for rendering tags and updating infinite scroll box on `settings/tags` page
11 lines
250 B
JavaScript
11 lines
250 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
willDestroyElement() {
|
|
this._super(...arguments);
|
|
|
|
if (this.get('tag.isDeleted') && this.attrs.onDelete) {
|
|
this.attrs.onDelete();
|
|
}
|
|
}
|
|
});
|