From 72e585395b9ab9ef985f654866716f5ff842c3d5 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 16 Apr 2020 13:28:09 +0200 Subject: [PATCH] status update handling for corpus list --- app/static/js/nopaque.lists.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/static/js/nopaque.lists.js b/app/static/js/nopaque.lists.js index 03b1e127..08c5f680 100644 --- a/app/static/js/nopaque.lists.js +++ b/app/static/js/nopaque.lists.js @@ -36,7 +36,8 @@ class RessourceList extends List { item = this.get("id", pathArray[0])[0]; switch(pathArray[1]) { case "status": - item.values({status: operation.value}); + item.values({status: operation.value, + "analyse-link": ["analysing", "prepared", "start analysis"].includes(operation.value) ? `/corpora/${pathArray[0]}/analyse` : ""}); break; default: break;