Sha256: ab93e427f94cf6e0974da3b639df98b67b57441a122d889345f8483de3812bce

Contents?: true

Size: 731 Bytes

Versions: 67

Compression:

Stored size: 731 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.capsule-content.service:syncState
 *
 * @description
 *   Provides a syncState that keeps capsule sync UI state.
 */
angular.module('Bastion.capsule-content').service('syncState', function () {

    this.DEFAULT = 'DEFAULT';
    this.SYNCING = 'SYNCING';
    this.RECLAIMING_SPACE = 'RECLAIMING_SPACE';
    this.RECLAIM_SPACE_TRIGGERED = 'RECLAIM_SPACE_TRIGGERED';
    this.SYNC_TRIGGERED = 'SYNC_TRIGGERED';
    this.CANCEL_TRIGGERED = 'CANCEL_TRIGGERED';
    this.FAILURE = 'FAILURE';

    this.set = function (state) {
        this.state = state;
        return this.state;
    };

    this.is = function () {
        return _.includes(arguments, this.state || this.DEFAULT);
    };

});

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-4.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js