Display error for pad history trim

This commit is contained in:
yflory 2020-02-06 12:01:35 +01:00
parent 8d01711244
commit 753fdbdc12
1 changed files with 2 additions and 1 deletions

View File

@ -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
});
});