mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
Update dependencies
This commit is contained in:
parent
99c62ccdb0
commit
162eef01dd
6
extensions/tags/js/admin/dist/extension.js
vendored
6
extensions/tags/js/admin/dist/extension.js
vendored
|
@ -801,12 +801,11 @@ 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;
|
||||
});
|
||||
|
||||
_this4.tag.delete().then(function () {
|
||||
this.tag.delete().then(function () {
|
||||
children.forEach(function (tag) {
|
||||
return tag.pushData({
|
||||
attributes: { isChild: false },
|
||||
|
@ -816,8 +815,7 @@ System.register('flarum/tags/components/EditTagModal', ['flarum/components/Modal
|
|||
m.redraw();
|
||||
});
|
||||
|
||||
_this4.hide();
|
||||
})();
|
||||
this.hide();
|
||||
}
|
||||
}
|
||||
}]);
|
||||
|
|
2571
extensions/tags/js/admin/package-lock.json
generated
Normal file
2571
extensions/tags/js/admin/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
2
extensions/tags/js/forum/dist/extension.js
vendored
2
extensions/tags/js/forum/dist/extension.js
vendored
|
@ -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;
|
||||
});
|
||||
})();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
2571
extensions/tags/js/forum/package-lock.json
generated
Normal file
2571
extensions/tags/js/forum/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user