parent
1ee762e8db
commit
8d04d3c2c4
@ -1,33 +1,27 @@ |
||||
tabReset = -> |
||||
RocketChat.TabBar.reset() |
||||
|
||||
FlowRouter.route '/admin/users', |
||||
name: 'admin-users' |
||||
triggersEnter: [tabReset] |
||||
triggersExit: [tabReset] |
||||
triggersExit: [ -> |
||||
Session.set 'adminSelectedUser' |
||||
] |
||||
action: -> |
||||
Session.set 'adminSelectedUser' |
||||
RocketChat.TabBar.showGroup 'adminusers' |
||||
BlazeLayout.render 'main', {center: 'adminUsers'} |
||||
|
||||
|
||||
FlowRouter.route '/admin/rooms', |
||||
name: 'admin-rooms' |
||||
triggersEnter: [tabReset] |
||||
triggersExit: [tabReset] |
||||
action: -> |
||||
RocketChat.TabBar.showGroup 'rooms' |
||||
BlazeLayout.render 'main', {center: 'adminRooms'} |
||||
|
||||
|
||||
FlowRouter.route '/admin/statistics', |
||||
name: 'admin-statistics' |
||||
triggersEnter: [tabReset] |
||||
triggersExit: [tabReset] |
||||
action: -> |
||||
RocketChat.TabBar.showGroup 'adminstatistics' |
||||
BlazeLayout.render 'main', {center: 'adminStatistics'} |
||||
|
||||
|
||||
FlowRouter.route '/admin/:group?', |
||||
name: 'admin' |
||||
triggersEnter: [tabReset] |
||||
triggersExit: [tabReset] |
||||
action: -> |
||||
RocketChat.TabBar.showGroup 'admin' |
||||
BlazeLayout.render 'main', {center: 'admin'} |
||||
|
||||
@ -1,12 +1,8 @@ |
||||
Meteor.startup -> |
||||
|
||||
RocketChat.callbacks.add 'enter-room', (subscription) -> |
||||
|
||||
RocketChat.TabBar.addButton |
||||
id: 'channel-settings' |
||||
i18nTitle: 'Room_Info' |
||||
icon: 'octicon octicon-info' |
||||
template: 'channelSettings' |
||||
order: 0 |
||||
|
||||
, RocketChat.callbacks.priority.MEDIUM, 'enter-room-tabbar-channel-settings' |
||||
RocketChat.TabBar.addButton |
||||
groups: ['channel', 'privategroup', 'directmessage'] |
||||
id: 'channel-settings' |
||||
i18nTitle: 'Room_Info' |
||||
icon: 'octicon octicon-info' |
||||
template: 'channelSettings' |
||||
order: 0 |
||||
|
||||
@ -0,0 +1,35 @@ |
||||
RocketChat.TabBar.addButton({ |
||||
groups: ['channel', 'privategroup', 'directmessage'], |
||||
id: 'message-search', |
||||
i18nTitle: TAPi18n.__('Search'), |
||||
icon: 'octicon octicon-search', |
||||
template: 'messageSearch', |
||||
order: 1 |
||||
}); |
||||
|
||||
RocketChat.TabBar.addButton({ |
||||
groups: ['directmessage'], |
||||
id: 'members-list', |
||||
i18nTitle: TAPi18n.__('User_Info'), |
||||
icon: 'octicon octicon-person', |
||||
template: 'membersList', |
||||
order: 2 |
||||
}); |
||||
|
||||
RocketChat.TabBar.addButton({ |
||||
groups: ['channel', 'privategroup'], |
||||
id: 'members-list', |
||||
i18nTitle: TAPi18n.__('Members_List'), |
||||
icon: 'octicon octicon-organization', |
||||
template: 'membersList', |
||||
order: 2 |
||||
}); |
||||
|
||||
RocketChat.TabBar.addButton({ |
||||
groups: ['channel', 'privategroup', 'directmessage'], |
||||
id: 'uploaded-files-list', |
||||
i18nTitle: TAPi18n.__('Room_uploaded_file_list'), |
||||
icon: 'octicon octicon-file-symlink-directory', |
||||
template: 'uploadedFilesList', |
||||
order: 3 |
||||
}); |
||||
@ -1,4 +1,9 @@ |
||||
Meteor.startup -> |
||||
RocketChat.callbacks.add 'enter-room', -> |
||||
RocketChat.TabBar.addButton({ id: 'mentions', i18nTitle: 'Mentions', icon: 'icon-at', template: 'mentionsFlexTab', order: 3 }) |
||||
, RocketChat.callbacks.priority.MEDIUM, 'enter-room-tabbar-mentions' |
||||
RocketChat.TabBar.addButton({ |
||||
groups: ['channel', 'privategroup'], |
||||
id: 'mentions', |
||||
i18nTitle: 'Mentions', |
||||
icon: 'icon-at', |
||||
template: 'mentionsFlexTab', |
||||
order: 3 |
||||
}) |
||||
|
||||
@ -1,5 +1,10 @@ |
||||
Meteor.startup -> |
||||
RocketChat.callbacks.add 'enter-room', -> |
||||
if RocketChat.settings.get 'Message_AllowPinning' |
||||
RocketChat.TabBar.addButton({ id: 'pinned-messages', i18nTitle: 'Pinned_Messages', icon: 'icon-pin', template: 'pinnedMessages', order: 10 }) |
||||
, RocketChat.callbacks.priority.MEDIUM, 'enter-room-tabbar-pin' |
||||
if RocketChat.settings.get 'Message_AllowPinning' |
||||
RocketChat.TabBar.addButton({ |
||||
groups: ['channel', 'privategroup', 'directmessage'], |
||||
id: 'pinned-messages', |
||||
i18nTitle: 'Pinned_Messages', |
||||
icon: 'icon-pin', |
||||
template: 'pinnedMessages', |
||||
order: 10 |
||||
}) |
||||
|
||||
@ -1,4 +1,9 @@ |
||||
Meteor.startup -> |
||||
RocketChat.callbacks.add 'enter-room', -> |
||||
RocketChat.TabBar.addButton({ id: 'starred-messages', i18nTitle: 'Starred_Messages', icon: 'icon-star', template: 'starredMessages', order: 3 }) |
||||
, RocketChat.callbacks.priority.MEDIUM, 'enter-room-tabbar-star' |
||||
RocketChat.TabBar.addButton({ |
||||
groups: ['channel', 'privategroup', 'directmessage'], |
||||
id: 'starred-messages', |
||||
i18nTitle: 'Starred_Messages', |
||||
icon: 'icon-star', |
||||
template: 'starredMessages', |
||||
order: 3 |
||||
}) |
||||
|
||||
Loading…
Reference in new issue