From 2a81b7f11a37e8a9a4c7eaba59571bd49c30c697 Mon Sep 17 00:00:00 2001 From: benjaminapetersen Date: Tue, 22 Aug 2017 17:17:34 -0400 Subject: [PATCH] Fix problem where UI appears unresponsive while waiting for websocket update --- app/scripts/services/resourceAlerts.js | 1 + dist/scripts/scripts.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scripts/services/resourceAlerts.js b/app/scripts/services/resourceAlerts.js index 4f9313ac8c..5535d6b790 100644 --- a/app/scripts/services/resourceAlerts.js +++ b/app/scripts/services/resourceAlerts.js @@ -123,6 +123,7 @@ angular.module("openshiftConsole") details: $filter('getErrorDetails')(e) }; }); + return true; } }] }; diff --git a/dist/scripts/scripts.js b/dist/scripts/scripts.js index c9f8f5acfa..9dbaaeeabd 100644 --- a/dist/scripts/scripts.js +++ b/dist/scripts/scripts.js @@ -4094,7 +4094,7 @@ links: [ { href: "", label: "Resume Rollouts", onClick: function() { -n.setPaused(t, !1, { +return n.setPaused(t, !1, { namespace: t.metadata.namespace }).then(_.noop, function(n) { a[t.metadata.uid + "-pause-error"] = { @@ -4102,7 +4102,7 @@ type: "error", message: "An error occurred resuming the " + i(t.kind) + ".", details: e("getErrorDetails")(n) }; -}); +}), !0; } } ] }), a;