mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
22 lines
562 B
JavaScript
22 lines
562 B
JavaScript
module.exports = function MenuCtrl(
|
|
$scope
|
|
, $rootScope
|
|
, SettingsService
|
|
, $location
|
|
, ExternalUrlModalService
|
|
) {
|
|
SettingsService.bind($rootScope, {
|
|
target: 'platform'
|
|
, defaultValue: 'native'
|
|
})
|
|
|
|
$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')
|
|
}
|
|
}
|