Skip to content
Snippets Groups Projects
Commit 8afc2863 authored by Aaron Ogle's avatar Aaron Ogle
Browse files

Added check to see if gitlab / github before adding

parent 205f2e35
No related branches found
No related tags found
No related merge requests found
Meteor.startup ->
RocketChat.callbacks.add 'enter-room', ->
console.log 'Adding chatops to tabbar'
RocketChat.TabBar.addButton
id: 'chatops-button'
i18nTitle: 'rocketchat-chatops:Chatops_Title'
icon: 'icon-code'
template: 'chatops'
order: 4
, RocketChat.callbacks.priority.MEDIUM, 'enter-room-tabbar-star'
if Meteor.user()?.services?.github?.id or Meteor.user()?.services?.gitlab?.id
console.log 'Adding chatops to tabbar'
RocketChat.TabBar.addButton
id: 'chatops-button'
i18nTitle: 'rocketchat-chatops:Chatops_Title'
icon: 'icon-code'
template: 'chatops'
order: 4
, RocketChat.callbacks.priority.MEDIUM, 'enter-room-tabbar-chatops'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment