discourse/app/assets/javascripts/admin/routes/admin-flags-index.js.es6

7 lines
195 B
JavaScript

export default Discourse.Route.extend({
redirect() {
let segment = this.siteSettings.flags_default_topics ? 'topics' : 'postsActive';
this.replaceWith(`adminFlags.${segment}`);
}
});