Compare commits

..

No commits in common. "6e8476c11640f85b5b12824affc64377b8cec281" and "2baef1a07e14ff9da093d565bc532846f8e0a735" have entirely different histories.

2 changed files with 10 additions and 21 deletions

View File

@ -68,19 +68,11 @@ DataSpace.createObjectShape = function (resource) {
afterGallery = shape.get('after-gallery');
for (const key in shape.get('before-gallery')) {
if (resource[key]) {
beforeGallery[key] = resource[key];
} else {
delete beforeGallery[key];
}
}
for (const key in shape.get('after-gallery')) {
if (resource[key]) {
afterGallery[key] = resource[key];
} else {
delete afterGallery[key];
}
}
shape.set('before-gallery', beforeGallery);
@ -98,14 +90,11 @@ DataSpace.createObjectShape = function (resource) {
DataSpace.fetchReport = async function(uuid, format='json')
{
const jsonRep =
await fetch(
`${this.BASE_URL}${this.RES_ENDPOINT}${uuid}?format=${format}&indent=2`
)
await fetch(`${this.BASE_URL}${this.RES_ENDPOINT}${uuid}?format=${format}&indent=2`)
.then(res => res.json())
.catch(excep => {
_fetchError(excep, 'error');
document.querySelector('.modal')
.classList.remove('active');
_createError(excep, 'error')
document.querySelector('.modal').classList.remove('active');
});
return jsonRep;
@ -174,7 +163,7 @@ DataSpace.getImagesSrc = function(resource) {
return fileNames;
}
function _fetchError(message, htmlId)
function _createError(message, htmlId)
{
const error = document.createElement('div');
const clear = document.createElement('button');

View File

@ -38,7 +38,7 @@
<h2 class="mt-1 p-2" id="rep-tit"></h2>
<div class="columns">
<div class="column col-7">
<table class="table mt-2" id="res-before">
<table class="table table-hover mt-2" id="res-before">
<tbody>
</tbody>
</table>