From 0222a1f16ea2e9c6573edae992ae302f0611721b Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Tue, 10 Jan 2023 10:01:54 +0100
Subject: [PATCH] Fix Ressource Displays to show status again
---
app/static/js/RessourceDisplays/CorpusDisplay.js | 2 +-
app/static/js/RessourceDisplays/JobDisplay.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/static/js/RessourceDisplays/CorpusDisplay.js b/app/static/js/RessourceDisplays/CorpusDisplay.js
index d1c94464..af4da56a 100644
--- a/app/static/js/RessourceDisplays/CorpusDisplay.js
+++ b/app/static/js/RessourceDisplays/CorpusDisplay.js
@@ -89,7 +89,7 @@ class CorpusDisplay extends RessourceDisplay {
}
elements = this.displayElement.querySelectorAll('.corpus-status');
for (let element of elements) {
- element.dataset.corpusStatus = status;
+ element.dataset.status = status;
}
elements = this.displayElement.querySelectorAll('.corpus-status-spinner');
for (let element of elements) {
diff --git a/app/static/js/RessourceDisplays/JobDisplay.js b/app/static/js/RessourceDisplays/JobDisplay.js
index d6669450..03c5601b 100644
--- a/app/static/js/RessourceDisplays/JobDisplay.js
+++ b/app/static/js/RessourceDisplays/JobDisplay.js
@@ -74,7 +74,7 @@ class JobDisplay extends RessourceDisplay {
setStatus(status) {
let elements = this.displayElement.querySelectorAll('.job-status');
for (let element of elements) {
- element.dataset.jobStatus = status;
+ element.dataset.status = status;
}
elements = this.displayElement.querySelectorAll('.job-status-spinner');
for (let element of elements) {