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.7.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.6.2.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.6.2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.7.0 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.6.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.7.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.7.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.4.2.2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.4.2.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.4.2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.5.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.6.0 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.6.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.6.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.5.0 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.5.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.4.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.5.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.4.0.2 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js
katello-4.4.0.1 engines/bastion/app/assets/javascripts/bastion/components/table-cache.service.js