mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 05:53:27 +02:00
Save user settings to the database and embed them to the template for fast access.
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
module.exports = function MenuCtrl($scope, $rootScope, SettingsService, $location, ExternalUrlModalService) {
|
||||
$rootScope.platform = 'native'
|
||||
module.exports = function MenuCtrl(
|
||||
$scope
|
||||
, $rootScope
|
||||
, SettingsService
|
||||
, $location
|
||||
, ExternalUrlModalService
|
||||
) {
|
||||
SettingsService.bind($rootScope, {
|
||||
key: 'platform',
|
||||
storeName: 'Platform'
|
||||
target: 'platform'
|
||||
, defaultValue: 'native'
|
||||
})
|
||||
|
||||
$scope.$on('$routeChangeSuccess', function () {
|
||||
|
||||
Reference in New Issue
Block a user