diff --git a/src/public/app/services/server.js b/src/public/app/services/server.js index 476c153bf..353298722 100644 --- a/src/public/app/services/server.js +++ b/src/public/app/services/server.js @@ -117,7 +117,12 @@ async function reportError(method, url, statusCode, response) { if ([400, 404].includes(statusCode) && response && typeof response === 'object') { toastService.showError(message); - throw new ValidationError(response); + throw new ValidationError({ + requestUrl: url, + method, + statusCode, + ...response + }); } else { const title = `${statusCode} ${method} ${url}`; toastService.showErrorTitleAndMessage(title, message); diff --git a/src/public/app/widgets/buttons/attachments_actions.js b/src/public/app/widgets/buttons/attachments_actions.js index 5480ded24..d33a2884c 100644 --- a/src/public/app/widgets/buttons/attachments_actions.js +++ b/src/public/app/widgets/buttons/attachments_actions.js @@ -27,7 +27,7 @@ const TPL = ` + style="position: relative; top: 3px;">