From 3f703c2ee691406b77f0e60b078ad0cfb34a170f Mon Sep 17 00:00:00 2001 From: Ignacio Pascual <4764217+ignapas@users.noreply.github.com> Date: Fri, 13 Nov 2020 14:25:57 +0100 Subject: [PATCH] [bugfix] filetype error message (#1958) --- .../client/source/class/osparc/dashboard/ExploreBrowser.js | 2 +- .../web/client/source/class/osparc/ui/mixin/FetchButton.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/client/source/class/osparc/dashboard/ExploreBrowser.js b/services/web/client/source/class/osparc/dashboard/ExploreBrowser.js index 0da0c2a6a54..57d59359d04 100644 --- a/services/web/client/source/class/osparc/dashboard/ExploreBrowser.js +++ b/services/web/client/source/class/osparc/dashboard/ExploreBrowser.js @@ -757,7 +757,7 @@ qx.Class.define("osparc.dashboard.ExploreBrowser", { osparc.component.message.FlashMessenger.logAs("Your data was sent to our curation team. We will get back to you shortly.", "INFO"); addServiceWindow.close(); } else { - osparc.component.message.FlashMessenger.logAs("A problem occured while processing your data", "ERROR"); + osparc.component.message.FlashMessenger.logAs(`A problem occured while processing your data: ${resp.statusText}`, "ERROR"); } }) .finally(() => form.setFetching(false)); diff --git a/services/web/client/source/class/osparc/ui/mixin/FetchButton.js b/services/web/client/source/class/osparc/ui/mixin/FetchButton.js index 4e83d543a06..712e9531197 100644 --- a/services/web/client/source/class/osparc/ui/mixin/FetchButton.js +++ b/services/web/client/source/class/osparc/ui/mixin/FetchButton.js @@ -19,13 +19,13 @@ qx.Mixin.define("osparc.ui.mixin.FetchButton", { }, members: { __icon: null, - _applyFetching: function(isFetching) { + _applyFetching: function(isFetching, old) { if (isFetching) { this.__icon = this.getIcon(); this.setIcon("@FontAwesome5Solid/circle-notch/12"); this.getChildControl("icon").getContentElement().addClass("rotate"); } else { - if (this.__icon !== null) { + if (isFetching !== old) { this.setIcon(this.__icon); } this.getChildControl("icon").getContentElement().removeClass("rotate");