mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-04-07 01:34:22 +00:00
Fix missing RessourceList import.
This commit is contained in:
parent
ad21fe178c
commit
269368e940
@ -157,8 +157,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script type="module">
|
||||||
class InformationUpdater {
|
import {RessourceList} from '../../static/js/nopaque.lists.js';
|
||||||
|
class InformationUpdater {
|
||||||
constructor(jobId, foreignJobFlag) {
|
constructor(jobId, foreignJobFlag) {
|
||||||
this.jobId = jobId;
|
this.jobId = jobId;
|
||||||
this.foreignJobFlag = foreignJobFlag;
|
this.foreignJobFlag = foreignJobFlag;
|
||||||
@ -283,19 +284,19 @@
|
|||||||
statusElement.dataset.status = status;
|
statusElement.dataset.status = status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% if job.creator == current_user %}
|
{% if job.creator == current_user %}
|
||||||
var informationUpdater = new InformationUpdater({{ job.id }}, false);
|
var informationUpdater = new InformationUpdater({{ job.id }}, false);
|
||||||
{% else %}
|
{% else %}
|
||||||
var informationUpdater = new InformationUpdater({{ job.id }}, true);
|
var informationUpdater = new InformationUpdater({{ job.id }}, true);
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
nopaque.socket.emit("foreign_user_data_stream_init", {{ job.user_id }});
|
nopaque.socket.emit("foreign_user_data_stream_init", {{ job.user_id }});
|
||||||
});
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
let jobInputsList = new RessourceList("inputs", null, "JobInput");
|
let jobInputsList = new RessourceList("inputs", null, "JobInput");
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
jobInputsList._add({{ job_inputs|tojson|safe }});
|
jobInputsList._add({{ job_inputs|tojson|safe }});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user