mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
16 lines
584 B
JavaScript
16 lines
584 B
JavaScript
module.exports = function MenuCtrl($scope, $rootScope, SettingsService, $location, ExternalUrlModalService) {
|
|
$rootScope.platform = 'native'
|
|
SettingsService.bind($rootScope, {
|
|
key: 'platform',
|
|
storeName: 'Platform'
|
|
})
|
|
|
|
$scope.$on('$routeChangeSuccess', function () {
|
|
$scope.isControlRoute = $location.path().search('/control') !== -1
|
|
})
|
|
|
|
$scope.openChat = function () {
|
|
var hipChatUrl = 'https://cyberagent.hipchat.com/chat?focus_jid=44808_stf@conf.hipchat.com&minimal=true'
|
|
ExternalUrlModalService.open(hipChatUrl, 'HipChat #STF', 'fa-comment')
|
|
}
|
|
}
|