From 753fdbdc12646b7ea9dc1356eca99df28d49501d Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 6 Feb 2020 12:01:35 +0100 Subject: [PATCH] Display error for pad history trim --- www/common/common-ui-elements.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index c12d23dc9..06ed02256 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -813,12 +813,13 @@ define([ channels: trimChannels, teamId: typeof(owned) === "number" && owned }, function (obj) { + spinner.hide(); if (obj && obj.error) { console.error(obj.error); // XXX what are the possible errors? + $(size).append(h('div.alert.alert-danger', Messages.trimHistory_error || 'error')); // XXX return; } - spinner.hide(); $(size).append(h('div.alert.alert-success', Messages.trimHistory_success || 'ok')); // XXX }); });