Sha256: 97620df1080ba55654214a3163b0449861624e86baba8922cddba7a94b814fd2
Contents?: true
Size: 969 Bytes
Versions: 10
Compression:
Stored size: 969 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.successMessages = []; $scope.errorMessages = []; $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
10 entries across 10 versions & 1 rubygems