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.3.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.4.0 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.4.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.4.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.2.2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.3.0 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.3.0.rc4 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.3.0.rc3 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.3.0.rc2.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.3.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.3.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.2.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.2.0.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.1.4 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.0.3 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.2.0.1.rc3 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-3.18.5 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.2.0.1.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.2.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.1.3 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js