@igea/oac_frontend 1.0.88 → 1.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -319,10 +319,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
319
319
|
|
|
320
320
|
// Resetta il riferimento e reinizializza
|
|
321
321
|
this.form = null;
|
|
322
|
-
this.initShaclForm();
|
|
322
|
+
this.initShaclForm(uuid);
|
|
323
323
|
|
|
324
324
|
},
|
|
325
|
-
initShaclForm() {
|
|
325
|
+
initShaclForm(uuid) {
|
|
326
326
|
var _this = this;
|
|
327
327
|
setTimeout(async ()=>{
|
|
328
328
|
_this.form = document.querySelector("shacl-form");
|
|
@@ -358,8 +358,15 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
358
358
|
else
|
|
359
359
|
_this.makeAttachmentClickable();
|
|
360
360
|
_this.validForm = true;
|
|
361
|
-
_this.
|
|
362
|
-
|
|
361
|
+
if(_this.inEditing)
|
|
362
|
+
_this.serializedForm = _this.form.serialize();
|
|
363
|
+
else{
|
|
364
|
+
setTimeout(async function(){
|
|
365
|
+
var rnd = (new Date()).getTime();
|
|
366
|
+
const response = await fetch("/backend/ontology/form/" + uuid + "?rnd=" + rnd)
|
|
367
|
+
_this.serializedForm = await response.text();
|
|
368
|
+
});
|
|
369
|
+
}
|
|
363
370
|
if(!_this.enabled)
|
|
364
371
|
_this.disableInteractions(_this.form);
|
|
365
372
|
|
|
@@ -105,12 +105,6 @@
|
|
|
105
105
|
<i v-if="saving"class="fa-solid fa-spinner"></i>
|
|
106
106
|
<i v-else class="fa-solid fa-save"></i>
|
|
107
107
|
</button>
|
|
108
|
-
<!--
|
|
109
|
-
<button style="margin-left:30px;" title="{{ t('investigation.new.reset') }}"
|
|
110
|
-
@click="reset()" type="button" class="btn btn-info">
|
|
111
|
-
<i class="fa-solid fa-broom"></i>
|
|
112
|
-
</button>
|
|
113
|
-
-->
|
|
114
108
|
</div>
|
|
115
109
|
|
|
116
110
|
<div id="shacl-container"
|