mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 20:36:28 +08:00
7 lines
195 B
JavaScript
7 lines
195 B
JavaScript
export default Discourse.Route.extend({
|
|
redirect() {
|
|
let segment = this.siteSettings.flags_default_topics ? 'topics' : 'postsActive';
|
|
this.replaceWith(`adminFlags.${segment}`);
|
|
}
|
|
});
|