Sha256: 3f653b96b9e3bf13d15064d637f92e00bd09181393ed653cf10b918f7bd80197
Contents?: true
Size: 621 Bytes
Versions: 20
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 _.contains(arguments, this.state || this.DEFAULT); }; });
Version data entries
20 entries across 20 versions & 1 rubygems