mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Sort out the route navigation in admin/email-style (#8837)
Previously it would go to the "html" page when refreshing on the "css" page, and would open an invalid empty-state page when trying to go to the "email style" tab when already on it.
This commit is contained in:
parent
4ab696dd2f
commit
67d5ce8ed1
@ -0,0 +1,7 @@
|
|||||||
|
import Route from "@ember/routing/route";
|
||||||
|
|
||||||
|
export default Route.extend({
|
||||||
|
beforeModel() {
|
||||||
|
this.replaceWith("adminCustomizeEmailStyle.edit", "html");
|
||||||
|
}
|
||||||
|
});
|
@ -1,10 +1,7 @@
|
|||||||
import Route from "@ember/routing/route";
|
import Route from "@ember/routing/route";
|
||||||
|
|
||||||
export default Route.extend({
|
export default Route.extend({
|
||||||
model() {
|
model() {
|
||||||
return this.store.find("email-style");
|
return this.store.find("email-style");
|
||||||
},
|
|
||||||
|
|
||||||
redirect() {
|
|
||||||
this.transitionTo("adminCustomizeEmailStyle.edit", "html");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user