Skip to content

Commit 63df19d

Browse files
committed
almost there
1 parent 6d38550 commit 63df19d

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

services/static-webserver/client/source/class/osparc/jobs/JobsBrowser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ qx.Class.define("osparc.jobs.JobsBrowser", {
3333
jobsBrowser = new osparc.jobs.JobsBrowser();
3434
}
3535
const title = qx.locale.Manager.tr("Jobs");
36-
const win = osparc.ui.window.Window.popUpInWindow(jobsBrowser, title, 500, 500);
36+
const win = osparc.ui.window.Window.popUpInWindow(jobsBrowser, title, 1000, 500);
3737
win.open();
3838
return win;
3939
}

services/static-webserver/client/source/class/osparc/jobs/JobsTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ qx.Class.define("osparc.jobs.JobsTable", {
3232
});
3333

3434
const columnModel = this.getTableColumnModel();
35-
columnModel.setColumnVisible(this.self().COLS.JOB_ID.column, false);
35+
columnModel.setColumnVisible(this.self().COLS.JOB_ID.column, true);
3636

3737
Object.values(this.self().COLS).forEach(col => columnModel.setColumnWidth(col.column, col.width));
3838
},

services/static-webserver/client/source/class/osparc/jobs/JobsTableModel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ qx.Class.define("osparc.jobs.JobsTableModel", {
9191
};
9292
const jobsStore = osparc.store.Jobs.getInstance();
9393
jobsStore.fetchJobs(urlParams, options)
94-
.then(jobs => this._onRowCountLoaded(jobs.length))
94+
.then(jobs => {
95+
this._onRowCountLoaded(jobs.length);
96+
})
9597
.catch(() => this._onRowCountLoaded(null));
9698
},
9799

services/static-webserver/client/source/class/osparc/store/Jobs.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,12 @@ qx.Class.define("osparc.store.Jobs", {
3636
fetchJobs: function() {
3737
return osparc.utils.Utils.fetchJSON("/resource/osparc/mock_jobs.json")
3838
.then(jobsData => {
39-
const jobs = [];
4039
if ("jobs" in jobsData) {
4140
jobsData["jobs"].forEach(jobData => {
42-
const job = this.addJob(jobData);
43-
if (job) {
44-
jobs.push(job);
45-
}
41+
this.addJob(jobData);
4642
});
4743
}
48-
return jobs;
44+
return this.getJobs();
4945
})
5046
.catch(err => console.error(err));
5147
},

0 commit comments

Comments
 (0)