Upload drop area improved.

This commit is contained in:
Gunther Brunner
2014-04-03 19:55:47 +09:00
parent 797b1152a3
commit b01e901ffc
4 changed files with 478 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
module.exports = function UploadCtrl($scope, $rootScope, SettingsService) {
module.exports = function UploadCtrl($scope, $rootScope, SettingsService, gettext) {
$scope.installation = null
@@ -25,6 +25,16 @@ module.exports = function UploadCtrl($scope, $rootScope, SettingsService) {
})
})
}
$scope.progressMessage = function (code) {
return {
'pushing_app': gettext('Pushing app...'),
'installing_app': gettext('Installing app...'),
'launching_app': gettext('Launching activity...'),
'success': gettext('Installation complete'),
'fail': gettext('Installation failed')
}[code]
}
//
// $scope.installEnabled = true
// SettingsService.bind($scope, {