Update dependencies

This commit is contained in:
Toby Zerner 2017-07-08 21:36:49 +09:30
parent 99c62ccdb0
commit 162eef01dd
4 changed files with 5158 additions and 20 deletions

View File

@ -801,23 +801,21 @@ System.register('flarum/tags/components/EditTagModal', ['flarum/components/Modal
var _this4 = this; var _this4 = this;
if (confirm(app.translator.trans('flarum-tags.admin.edit_tag.delete_tag_confirmation'))) { if (confirm(app.translator.trans('flarum-tags.admin.edit_tag.delete_tag_confirmation'))) {
(function () { var children = app.store.all('tags').filter(function (tag) {
var children = app.store.all('tags').filter(function (tag) { return tag.parent() === _this4.tag;
return tag.parent() === _this4.tag; });
});
_this4.tag.delete().then(function () { this.tag.delete().then(function () {
children.forEach(function (tag) { children.forEach(function (tag) {
return tag.pushData({ return tag.pushData({
attributes: { isChild: false }, attributes: { isChild: false },
relationships: { parent: null } relationships: { parent: null }
});
}); });
m.redraw();
}); });
m.redraw();
});
_this4.hide(); this.hide();
})();
} }
} }
}]); }]);

2571
extensions/tags/js/admin/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -10,13 +10,11 @@ System.register('flarum/tags/addTagComposer', ['flarum/extend', 'flarum/componen
var tag = app.store.getBy('tags', 'slug', this.params().tags); var tag = app.store.getBy('tags', 'slug', this.params().tags);
if (tag) { if (tag) {
(function () { var parent = tag.parent();
var parent = tag.parent(); var tags = parent ? [parent, tag] : [tag];
var tags = parent ? [parent, tag] : [tag]; promise.then(function (component) {
promise.then(function (component) { return component.tags = tags;
return component.tags = tags; });
});
})();
} }
}); });

2571
extensions/tags/js/forum/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff