chore: remove the authorized page temporarily

This commit is contained in:
FoskyM 2023-10-02 05:40:04 +08:00
parent faee03069c
commit b66e8a56d1
No known key found for this signature in database
GPG key ID: 42C0ED6994AD7E9C
3 changed files with 13 additions and 14 deletions

BIN
js/dist/forum.js generated vendored

Binary file not shown.

BIN
js/dist/forum.js.map generated vendored

Binary file not shown.

View file

@ -16,20 +16,19 @@ app.initializers.add('foskym/flarum-oauth-center', () => {
}; };
extend(UserPage.prototype, 'navItems', function (items) { extend(UserPage.prototype, 'navItems', function (items) {
if (app.session.user && app.session.user.id() === this.user.id()) { if (app.session.user && app.session.user.id() === this.user.id()) {
items.add( // items.add(
'authorized', // 'authorized',
LinkButton.component( // LinkButton.component(
{ // {
href: app.route('user.authorized', { username: this.user.username() }), // href: app.route('user.authorized', { username: this.user.username() }),
icon: 'fas fa-user-friends', // icon: 'fas fa-user-friends',
}, // },
[ // [
app.translator.trans('foskym-oauth-center.forum.page.label.authorized'), // app.translator.trans('foskym-oauth-center.forum.page.label.authorized'),
// this.user.moderatorNoteCount() > 0 ? <span className="Button-badge">{this.user.moderatorNoteCount()}</span> : '', // ]
] // ),
), // -110
-110 // );
);
} }
}); });
}); });