mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 15:16:04 +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}`);
|
|
}
|
|
});
|