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

Version Path
katello-3.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js
katello-3.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js
katello-3.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file.controller.js