discourse/app/assets/javascripts/admin/addon/routes/admin-whats-new.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
386 B
JavaScript
Raw Normal View History

import { inject as service } from "@ember/service";
import DiscourseRoute from "discourse/routes/discourse";
import I18n from "discourse-i18n";
export default class AdminWhatsNew extends DiscourseRoute {
@service currentUser;
titleToken() {
return I18n.t("admin.dashboard.new_features.title");
}
activate() {
this.currentUser.set("has_unseen_features", false);
}
}