mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Show only Web/Native when controlling.
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
module.exports = function MenuCtrl($scope, $rootScope, SettingsService) {
|
||||
module.exports = function MenuCtrl($scope, $rootScope, SettingsService, $location) {
|
||||
$rootScope.platform = 'native'
|
||||
SettingsService.bind($rootScope, {
|
||||
key: 'platform',
|
||||
storeName: 'Platform'
|
||||
})
|
||||
|
||||
$scope.$on('$routeChangeSuccess', function () {
|
||||
$scope.isControlRoute = $location.path().search('/control') !== -1
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user