Skip to content

Commit 24556c9

Browse files
committed
open on click
1 parent 56be07c commit 24556c9

File tree

3 files changed

+8
-26
lines changed

3 files changed

+8
-26
lines changed

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

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ qx.Class.define("osparc.jobs.RunsTable", {
3636

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

39-
const iconPathInfo = "osparc/circle-info-text.svg";
40-
const fontButtonRendererInfo = new osparc.ui.table.cellrenderer.ImageButtonRenderer("info", iconPathInfo);
41-
columnModel.setDataCellRenderer(this.self().COLS.INFO.column, fontButtonRendererInfo);
42-
4339
const iconPathStop = "osparc/circle-stop-text.svg";
4440
const fontButtonRendererStop = new osparc.ui.table.cellrenderer.ImageButtonRenderer("stop", iconPathStop);
4541
columnModel.setDataCellRenderer(this.self().COLS.ACTION_STOP.column, fontButtonRendererStop);
@@ -93,33 +89,15 @@ qx.Class.define("osparc.jobs.RunsTable", {
9389
width: 130,
9490
sortable: true
9591
},
96-
INFO: {
97-
id: "info",
98-
column: 6,
99-
label: qx.locale.Manager.tr("Info"),
100-
width: 40
101-
},
10292
ACTION_STOP: {
10393
id: "info",
104-
column: 7,
94+
column: 6,
10595
label: "",
10696
width: 40
10797
},
10898
ACTION_RUN: {
10999
id: "action_run",
110-
column: 8,
111-
label: "",
112-
width: 40
113-
},
114-
ACTION_RETRY: {
115-
id: "action_retry",
116-
column: 9,
117-
label: "",
118-
width: 40
119-
},
120-
ACTION_MORE: {
121-
id: "action_more",
122-
column: 10,
100+
column: 7,
123101
label: "",
124102
width: 40
125103
},
@@ -136,6 +114,10 @@ qx.Class.define("osparc.jobs.RunsTable", {
136114
if (action) {
137115
this.__handleButtonClick(action, row);
138116
}
117+
} else {
118+
const rowData = this.getTableModel().getRowData(row);
119+
this.fireDataEvent("runSelected", rowData);
120+
this.resetSelection();
139121
}
140122
});
141123
},
@@ -147,8 +129,8 @@ qx.Class.define("osparc.jobs.RunsTable", {
147129
this.fireDataEvent("runSelected", rowData);
148130
break;
149131
}
132+
case "start":
150133
case "stop":
151-
case "delete":
152134
case "logs": {
153135
const msg = `I wish I could ${action} the job ${rowData["projectUuid"]}`;
154136
osparc.FlashMessenger.logAs(msg, "WARNING");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ qx.Class.define("osparc.jobs.SubRunsTable", {
142142
}
143143
default:
144144
console.warn(`Unknown action: ${action}`);
145+
break;
145146
}
146147
},
147148
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ qx.Class.define("osparc.jobs.SubRunsTableModel", {
9595
[subJobsCols.START.id]: startedAt ? osparc.utils.Utils.formatDateAndTime(startedAt) : "-",
9696
[subJobsCols.END.id]: endedAt ? osparc.utils.Utils.formatDateAndTime(endedAt) : "-",
9797
[subJobsCols.DURATION.id]: duration,
98-
[subJobsCols.IMAGE.id]: subJob.getImage() ? osparc.utils.Utils.formatDateAndTime(subJob.getEndedAt()) : "-",
9998
});
10099
});
101100
return data;

0 commit comments

Comments
 (0)