mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 05:53:27 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = function InstallCtrl(
|
||||
$scope.accordionOpen = true
|
||||
$scope.installation = null
|
||||
|
||||
$scope.clear = function () {
|
||||
$scope.clear = function() {
|
||||
$scope.installation = null
|
||||
$scope.accordionOpen = false
|
||||
}
|
||||
@@ -14,21 +14,21 @@ module.exports = function InstallCtrl(
|
||||
$scope.installation = installation.apply($scope)
|
||||
})
|
||||
|
||||
$scope.installUrl = function (url) {
|
||||
$scope.installUrl = function(url) {
|
||||
return InstallService.installUrl($scope.control, url)
|
||||
}
|
||||
|
||||
$scope.installFile = function ($files) {
|
||||
$scope.installFile = function($files) {
|
||||
if ($files.length) {
|
||||
return InstallService.installFile($scope.control, $files)
|
||||
}
|
||||
}
|
||||
|
||||
$scope.uninstall = function (packageName) {
|
||||
$scope.uninstall = function(packageName) {
|
||||
// TODO: After clicking uninstall accordion opens
|
||||
return $scope.control.uninstall(packageName)
|
||||
.then(function () {
|
||||
$scope.$apply(function () {
|
||||
.then(function() {
|
||||
$scope.$apply(function() {
|
||||
$scope.clear()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user