nopaque.resource_lists.JobInputList = class JobInputList extends nopaque.resource_lists.ResourceList { static htmlClass = 'job-input-list'; constructor(listContainerElement, options = {}) { super(listContainerElement, options); this.listjs.list.addEventListener('click', (event) => {this.onClick(event)}); this.isInitialized = false; this.userId = listContainerElement.dataset.userId; this.jobId = listContainerElement.dataset.jobId; if (this.userId === undefined || this.jobId === undefined) {return;} // app.userHub.addEventListener('patch', (event) => { // if (this.isInitialized) {this.onPatch(event.detail);} // }); app.userHub.get(this.userId).then((user) => { this.add(Object.values(user.jobs[this.jobId].inputs)); this.isInitialized = true; }); } get item() { return `
Filename |
---|