Sha256: 1becadd90cc88508dfa5ad91a99118a7ae78ad3d92ef6463a1fd398f0b56d975

Contents?: true

Size: 778 Bytes

Versions: 207

Compression:

Stored size: 778 Bytes

Contents

(function () {
    /**
     * @ngdoc service
     * @name Bastion.components:TableCache
     *
     * @description
     *   Used to save the table between states so that the search, etc. can be remembered
     *   upon revisiting the state.
     **/
    function TableCache($cacheFactory) {
        var cache = $cacheFactory('bst-table');

        this.setTable = function (tableName, table) {
            cache.put(tableName, table);
        };

        this.removeTable = function (tableName) {
            cache.remove(tableName);
        };

        this.getTable = function (tableName) {
            return cache.get(tableName);
        };
    }

    angular.module('Bastion.components').service('TableCache', TableCache);
    TableCache.$inject = ['$cacheFactory'];
})();

Version data entries

207 entries across 207 versions & 2 rubygems

Version Path
katello-4.15.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.15.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.14.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.14.0 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.14.0.rc3 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.14.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.14.0.rc1.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.14.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.13.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.13.0 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.12.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.13.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.12.0 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.12.0.rc3 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.12.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.12.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.11.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.11.0 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.11.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.11.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js