Make JobList class ready for admin view.

This commit is contained in:
Patrick Jentsch committed 2019-09-18 11:32:35 +02:00
1 parent 0ea87de072
commit b90d6114b0
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -1,11 +1,11 @@
class JobList extends List {
constructor(idOrElement, options) {
constructor(idOrElement, subscriberList, options) {
super(idOrElement, options);
jobsSubscribers.push(this);
subscriberList.push(this);
}
_init() {
_init(jobs) {
for (let [id, job] of Object.entries(jobs)) {
this.addJob(job);
}