| window.angular && (function (angular) { |
| .module('app.common.directives') |
| .directive('firmwareList', ['APIUtils', function (APIUtils) { |
| 'template': require('./firmware-list.html'), |
| 'controller': ['$rootScope', '$scope','dataService', '$location', '$timeout', function($rootScope, $scope, dataService, $location, $timeout){ |
| $scope.dataService = dataService; |
| $scope.activate = function(imageId, imageVersion, imageType){ |
| $scope.$parent.activateImage(imageId, imageVersion, imageType); |
| $scope.delete = function(imageId, imageVersion){ |
| $scope.$parent.deleteImage(imageId, imageVersion); |
| $scope.changePriority = function(imageId, imageVersion, from, to){ |
| $scope.$parent.changePriority(imageId, imageVersion, from, to); |