Finally Control button is implemented.

Also the route /control tries to use the last used device.
This commit is contained in:
Gunther Brunner
2014-09-11 18:15:16 +09:00
parent f0d52bf2c6
commit dbfbe53b37
7 changed files with 64 additions and 31 deletions

View 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('/')
}
}