Skip to content

Commit 69eb841

Browse files
committed
abort
1 parent 6f49d2c commit 69eb841

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

services/static-webserver/client/source/class/osparc/file/FileLabelWithActions.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,20 @@ qx.Class.define("osparc.file.FileLabelWithActions", {
236236
"@FontAwesome5Solid/trash/14",
237237
this.tr("Deleting files..."),
238238
);
239+
if (task.getAbortHref()) {
240+
const cancelButton = progressWindow.addCancelButton();
241+
cancelButton.setLabel(this.tr("Ignore"));
242+
const abortButton = new qx.ui.form.Button().set({
243+
label: this.tr("Cancel"),
244+
center: true,
245+
minWidth: 100,
246+
});
247+
abortButton.addListener("execute", () => task.abortRequested());
248+
progressWindow.addButton(abortButton);
249+
abortButton.set({
250+
appearance: "danger-button",
251+
});
252+
}
239253
progressWindow.open();
240254

241255
const finished = (msg, msgLevel) => {

0 commit comments

Comments
 (0)