mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 05:00:19 +08:00
parent
287085dc25
commit
c037658675
6
js/forum/dist/app.js
vendored
6
js/forum/dist/app.js
vendored
|
@ -27783,13 +27783,11 @@ System.register('flarum/components/SessionDropdown', ['flarum/helpers/avatar', '
|
|||
href: app.route('settings')
|
||||
}), 50);
|
||||
|
||||
if (user.groups().some(function (group) {
|
||||
return group.id() === Group.ADMINISTRATOR_ID;
|
||||
})) {
|
||||
if (app.forum.attribute('adminUrl')) {
|
||||
items.add('administration', LinkButton.component({
|
||||
icon: 'wrench',
|
||||
children: app.translator.trans('core.forum.header.admin_button'),
|
||||
href: app.forum.attribute('baseUrl') + '/admin',
|
||||
href: app.forum.attribute('adminUrl'),
|
||||
target: '_blank',
|
||||
config: function config() {}
|
||||
}), 0);
|
||||
|
|
|
@ -62,12 +62,12 @@ export default class SessionDropdown extends Dropdown {
|
|||
50
|
||||
);
|
||||
|
||||
if (user.groups().some(group => group.id() === Group.ADMINISTRATOR_ID)) {
|
||||
if (app.forum.attribute('adminUrl')) {
|
||||
items.add('administration',
|
||||
LinkButton.component({
|
||||
icon: 'wrench',
|
||||
children: app.translator.trans('core.forum.header.admin_button'),
|
||||
href: app.forum.attribute('baseUrl') + '/admin',
|
||||
href: app.forum.attribute('adminUrl'),
|
||||
target: '_blank',
|
||||
config: () => {}
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue
Block a user