handle warnings from history trim, not just errors

This commit is contained in:
ansuz 2021-08-12 19:14:30 +05:30
parent 8d17ae64f3
commit 036248a659
1 changed files with 2 additions and 1 deletions

View File

@ -170,7 +170,8 @@ define([
teamId: typeof(owned) === "number" && owned
}, function (obj) {
spinner.hide();
if (obj && obj.error) {
if (obj && obj.error || obj.warning) {
console.error(obj.warning);
$(size).append(h('div.alert.alert-danger', Messages.trimHistory_error));
return;
}