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

9 lines
207 B
JavaScript

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