mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 10:36:30 +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}`);
|
|
}
|
|
});
|