Sha256: bb0e500ceab75591df19336728695025d7253f38a183c78c9ee0245c9771fdf8

Contents?: true

Size: 621 Bytes

Versions: 150

Compression:

Stored size: 621 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.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

150 entries across 150 versions & 1 rubygems

Version Path
katello-4.0.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.18.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.18.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.17.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.16.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.18.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.18.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.17.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.18.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.17.0.rc2.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.17.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.16.1.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.16.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.17.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.16.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.17.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.16.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.16.0.rc5.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.16.0.rc5 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js
katello-3.16.0.rc4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js