mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 21:53:35 +02:00
Finally Control button is implemented.
Also the route /control tries to use the last used device.
This commit is contained in:
10
res/app/control-panes/control-panes-no-device-controller.js
Normal file
10
res/app/control-panes/control-panes-no-device-controller.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports =
|
||||
function ControlPanesNoDeviceController($location, SettingsService) {
|
||||
var lastUsedDevice = SettingsService.get('lastUsedDevice')
|
||||
|
||||
if (lastUsedDevice) {
|
||||
$location.path('/control/' + lastUsedDevice)
|
||||
} else {
|
||||
$location.path('/')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user