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

9 lines
207 B
Plaintext
Raw Normal View History

export default Discourse.Route.extend({
redirect() {
2018-06-15 23:03:24 +08:00
let segment = this.siteSettings.flags_default_topics
? "topics"
: "postsActive";
this.replaceWith(`adminFlags.${segment}`);
}
});