mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: rename refresh action to avoid regressions in the future (#14721)
This commit is contained in:
committed by
GitHub
parent
19d95c64af
commit
7f79727090
@@ -96,7 +96,7 @@ export default Controller.extend({
|
|||||||
(proceed) => {
|
(proceed) => {
|
||||||
if (proceed) {
|
if (proceed) {
|
||||||
ajax("/tags/unused", { type: "DELETE" })
|
ajax("/tags/unused", { type: "DELETE" })
|
||||||
.then(() => this.send("refresh"))
|
.then(() => this.send("triggerRefresh"))
|
||||||
.catch(popupAjaxError);
|
.catch(popupAjaxError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import DiscourseRoute from "discourse/routes/discourse";
|
import DiscourseRoute from "discourse/routes/discourse";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
import Tag from "discourse/models/tag";
|
import Tag from "discourse/models/tag";
|
||||||
|
import { action } from "@ember/object";
|
||||||
|
|
||||||
export default DiscourseRoute.extend({
|
export default DiscourseRoute.extend({
|
||||||
model() {
|
model() {
|
||||||
@@ -34,19 +35,20 @@ export default DiscourseRoute.extend({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
@action
|
||||||
didTransition() {
|
didTransition() {
|
||||||
this.controllerFor("application").set("showFooter", true);
|
this.controllerFor("application").set("showFooter", true);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@action
|
||||||
showTagGroups() {
|
showTagGroups() {
|
||||||
this.transitionTo("tagGroups");
|
this.transitionTo("tagGroups");
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
refresh() {
|
@action
|
||||||
|
triggerRefresh() {
|
||||||
this.refresh();
|
this.refresh();
|
||||||
},
|
},
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{{#d-modal-body title="tagging.upload"}}
|
{{#d-modal-body title="tagging.upload"}}
|
||||||
{{tags-uploader refresh=(route-action "refresh") closeModal=(route-action "closeModal")}}
|
{{tags-uploader refresh=(route-action "triggerRefresh") closeModal=(route-action "closeModal")}}
|
||||||
{{/d-modal-body}}
|
{{/d-modal-body}}
|
||||||
|
|||||||
Reference in New Issue
Block a user