Sha256: 250a4c2904a3a727095e3578a738c21b9621efb2e87afe72ad314c176f054cf5
Contents?: true
Size: 896 Bytes
Versions: 202
Compression:
Stored size: 896 Bytes
Contents
(function () { /** * @ngdoc object * @name Bastion.files.controller:FileController * * @description * Provides the functionality for the files details action pane. */ function FileController($scope, File, ApiErrorHandler) { $scope.panel = { error: false, loading: true }; if ($scope.file) { $scope.panel.loading = false; } $scope.file = File.get({id: $scope.$stateParams.fileId}, function () { $scope.panel.loading = false; }, function (response) { $scope.panel.loading = false; ApiErrorHandler.handleGETRequestErrors(response, $scope); }); } angular .module('Bastion.files') .controller('FileController', FileController); FileController.$inject = ['$scope', 'File', 'ApiErrorHandler']; })();
Version data entries
202 entries across 202 versions & 1 rubygems