mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[enh] UI, handle delete_app event
This commit is contained in:
parent
140fed93c2
commit
338f15a52e
1 changed files with 7 additions and 0 deletions
|
@ -116,6 +116,13 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (action == "delete_app") {
|
||||||
|
for (var i = 0; i < app.apps.length; ++i) {
|
||||||
|
if (app.apps[i].id == data.id) {
|
||||||
|
app.apps.splice(i, i);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if (action == "update_job") {
|
} else if (action == "update_job") {
|
||||||
for (var i = 0; i < app.apps.length; ++i) {
|
for (var i = 0; i < app.apps.length; ++i) {
|
||||||
if (app.apps[i].job_id == data.id) {
|
if (app.apps[i].job_id == data.id) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue