mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[enh] apps page handle new_job event
This commit is contained in:
parent
3ef15da92a
commit
680ad46d27
1 changed files with 11 additions and 2 deletions
|
@ -85,8 +85,17 @@
|
|||
Vue.set(app.apps[i], 'end_time', data.end_time);
|
||||
}
|
||||
}
|
||||
} else if (action == "add_job") {
|
||||
|
||||
} else if (action == "new_job") {
|
||||
for (var i = 0; i < app.apps.length; ++i) {
|
||||
if (app.apps[i].url == data.url_or_path) {
|
||||
Vue.set(app.apps[i], 'job_id', data.id);
|
||||
Vue.set(app.apps[i], 'job_name', data.name);
|
||||
Vue.set(app.apps[i], 'job_state', data.state);
|
||||
Vue.set(app.apps[i], 'created_time', data.created_time);
|
||||
Vue.set(app.apps[i], 'started_time', data.started_time);
|
||||
Vue.set(app.apps[i], 'end_time', data.end_time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue