mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +08:00
Update dependencies
This commit is contained in:
parent
99c62ccdb0
commit
162eef01dd
24
extensions/tags/js/admin/dist/extension.js
vendored
24
extensions/tags/js/admin/dist/extension.js
vendored
|
@ -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
2571
extensions/tags/js/admin/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
12
extensions/tags/js/forum/dist/extension.js
vendored
12
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;
|
||||
});
|
||||
})();
|
||||
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