Move most installation functionality to InstallService. This makes it easier to have multiple drop areas while keeping them in sync.

This commit is contained in:
Simo Kinnunen
2014-09-05 17:28:01 +09:00
parent 484f868094
commit 6714ba8d24
5 changed files with 154 additions and 99 deletions

View File

@@ -1,4 +1,13 @@
module.exports = function DeviceScreenCtrl($scope, $rootScope, ScalingService) {
module.exports = function DeviceScreenCtrl(
$scope
, $rootScope
, ScalingService
, InstallService
) {
$scope.displayError = false
$scope.ScalingService = ScalingService
$scope.installFile = function ($files) {
return InstallService.installFile($scope.control, $files)
}
}