bastion 5.0.7 → 5.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a7c9431ed0078114c6e171f08c6235a6aee2c1a
4
- data.tar.gz: 607f23ed40b6038579e001f4e7e42012756b0359
3
+ metadata.gz: 8e3e71039031e4dd080f29a933122ed9a8f0d2b4
4
+ data.tar.gz: e9fa911169be27205aef33487085236f569d8fa6
5
5
  SHA512:
6
- metadata.gz: cae3c0c52a6875f8af22f7f328b66dfc81cfc08565066e808f4143906b7fe1a7c6ea6b6ad90ea92442d235a569441551e9973a03aea724d6b44a5742d90f1c56
7
- data.tar.gz: b8fa098368c81edc55caf68cf30a97d64c3ece7dba71135ca783e0dc0e7fdcb7e9ac5fc3794dd26ad5aac90f60a8134532383e7926a7e525a35d6cf0b0c0c32f
6
+ metadata.gz: 5d3f6e4499589954d82356cce001eb6f856c338067e5f8f4c1bb6e258002970ce63a94afb1d26101e0192427cc5cf8910e7aa9e2dd316892ae46ef5fcc1865ac
7
+ data.tar.gz: 596c186b3a3c28dcf9fbc8dd27e151f1ba7dc8530b8f9b1b32550156560acc9082128a68d7f531b91f4ebaf8fd8abcc76ee3c8da68e5ad8466c0eef9c31b0687
@@ -83,6 +83,7 @@ angular.module('Bastion.components').factory('Nutupane',
83
83
 
84
84
  self.load = function () {
85
85
  var deferred = $q.defer(),
86
+ resourceCall,
86
87
  table = self.table,
87
88
  existingTable = TableCache.getTable(getTableName());
88
89
 
@@ -100,8 +101,7 @@ angular.module('Bastion.components').factory('Nutupane',
100
101
  params.search = table.searchTerm || "";
101
102
  params.search = self.searchTransform(params.search);
102
103
 
103
- resource[table.action](params, function (response) {
104
-
104
+ resourceCall = resource[table.action](params, function (response) {
105
105
  if (response.error) {
106
106
  GlobalNotification.setErrorMessage(response.error);
107
107
  }
@@ -140,11 +140,15 @@ angular.module('Bastion.components').factory('Nutupane',
140
140
  table.working = false;
141
141
  table.refreshing = false;
142
142
  table.initialLoad = false;
143
- }).$promise.catch(function() {
144
- table.working = false;
145
- table.refreshing = false;
146
143
  });
147
144
 
145
+ if (resourceCall && resourceCall.$promise && resourceCall.$promise.catch) {
146
+ resourceCall.$promise.catch(function () {
147
+ table.working = false;
148
+ table.refreshing = false;
149
+ });
150
+ }
151
+
148
152
  return deferred.promise;
149
153
  };
150
154
 
@@ -1,3 +1,3 @@
1
1
  module Bastion
2
- VERSION = "5.0.7"
2
+ VERSION = "5.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bastion
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.7
4
+ version: 5.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric D Helms
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-03 00:00:00.000000000 Z
12
+ date: 2017-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: angular-rails-templates