mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
17 lines
379 B
JavaScript
17 lines
379 B
JavaScript
module.exports = function MenuCtrl($scope, $rootScope, SettingsService,
|
|
$location) {
|
|
|
|
SettingsService.bind($scope, {
|
|
target: 'lastUsedDevice'
|
|
})
|
|
|
|
SettingsService.bind($rootScope, {
|
|
target: 'platform',
|
|
defaultValue: 'native'
|
|
})
|
|
|
|
$scope.$on('$routeChangeSuccess', function () {
|
|
$scope.isControlRoute = $location.path().search('/control') !== -1
|
|
})
|
|
|
|
}
|