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;
if (confirm(app.translator.trans('flarum-tags.admin.edit_tag.delete_tag_confirmation'))) {
(function () {
var children = app.store.all('tags').filter(function (tag) {
return tag.parent() === _this4.tag;
});
var children = app.store.all('tags').filter(function (tag) {
return tag.parent() === _this4.tag;
});
_this4.tag.delete().then(function () {
children.forEach(function (tag) {
return tag.pushData({
attributes: { isChild: false },
relationships: { parent: null }
});
this.tag.delete().then(function () {
children.forEach(function (tag) {
return tag.pushData({
attributes: { isChild: false },
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);
if (tag) {
(function () {
var parent = tag.parent();
var tags = parent ? [parent, tag] : [tag];
promise.then(function (component) {
return component.tags = tags;
});
})();
var parent = tag.parent();
var tags = parent ? [parent, tag] : [tag];
promise.then(function (component) {
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