status update handling for corpus list

This commit is contained in:
Patrick Jentsch 2020-04-16 13:28:09 +02:00
parent f356d4bb89
commit 72e585395b

View File

@ -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;