Skip to content

Commit 23eb445

Browse files
committed
captions in Confirmation Dialogs
1 parent 6a2ec33 commit 23eb445

File tree

17 files changed

+20
-0
lines changed

17 files changed

+20
-0
lines changed

services/static-webserver/client/source/class/osparc/dashboard/FolderButtonItem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ qx.Class.define("osparc.dashboard.FolderButtonItem", {
240240
__deleteStudyRequested: function() {
241241
const msg = this.tr("Are you sure you want to delete") + " <b>" + this.getTitle() + "</b>?";
242242
const confirmationWin = new osparc.ui.window.Confirmation(msg).set({
243+
caption: this.tr("Delete"),
243244
confirmText: this.tr("Delete"),
244245
confirmAction: "delete"
245246
});

services/static-webserver/client/source/class/osparc/dashboard/TemplateBrowser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ qx.Class.define("osparc.dashboard.TemplateBrowser", {
196196
const templatesText = osparc.product.Utils.getTemplateAlias({plural: true});
197197
const msg = this.tr("Are you sure you want to update all ") + templatesText + "?";
198198
const win = new osparc.ui.window.Confirmation(msg).set({
199+
caption: this.tr("Update"),
199200
confirmText: this.tr("Update all"),
200201
confirmAction: "create"
201202
});
@@ -327,6 +328,7 @@ qx.Class.define("osparc.dashboard.TemplateBrowser", {
327328
const rUSure = this.tr("Are you sure you want to delete ");
328329
const msg = rUSure + "<b>" + templateData.name + "</b>?";
329330
const win = new osparc.ui.window.Confirmation(msg).set({
331+
caption: this.tr("Delete"),
330332
confirmText: this.tr("Delete"),
331333
confirmAction: "delete"
332334
});

services/static-webserver/client/source/class/osparc/dashboard/WorkspaceButtonItem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ qx.Class.define("osparc.dashboard.WorkspaceButtonItem", {
250250
let msg = this.tr("Are you sure you want to delete") + " <b>" + this.getTitle() + "</b>?";
251251
msg += "<br>" + this.tr("All the content of the workspace will be deleted.");
252252
const confirmationWin = new osparc.ui.window.Confirmation(msg).set({
253+
caption: this.tr("Delete"),
253254
confirmText: this.tr("Delete"),
254255
confirmAction: "delete"
255256
});

services/static-webserver/client/source/class/osparc/data/model/Node.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,7 @@ qx.Class.define("osparc.data.model.Node", {
949949
if (preferencesSettings.getConfirmStopNode()) {
950950
const msg = this.tr("Do you really want Stop and Save the current state?");
951951
const win = new osparc.ui.window.Confirmation(msg).set({
952+
caption: this.tr("Stop"),
952953
confirmText: this.tr("Stop")
953954
});
954955
win.center();

services/static-webserver/client/source/class/osparc/desktop/SlideshowView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ qx.Class.define("osparc.desktop.SlideshowView", {
456456
if (preferencesSettings.getConfirmDeleteNode()) {
457457
const msg = this.tr("Are you sure you want to delete node?");
458458
const win = new osparc.ui.window.Confirmation(msg).set({
459+
caption: this.tr("Delete"),
459460
confirmText: this.tr("Delete"),
460461
confirmAction: "delete"
461462
});

services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ qx.Class.define("osparc.desktop.StudyEditor", {
598598
this.getStudyLogger().info(null, "The pipeline is up-to-date");
599599
const msg = this.tr("The pipeline is up-to-date. Do you want to re-run it?");
600600
const win = new osparc.ui.window.Confirmation(msg).set({
601+
caption: this.tr("Re-run"),
601602
confirmText: this.tr("Run"),
602603
confirmAction: "create"
603604
});

services/static-webserver/client/source/class/osparc/desktop/WorkbenchView.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,7 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
11191119
if (!avoidConfirmation && preferencesSettings.getConfirmDeleteNode()) {
11201120
const msg = this.tr("Are you sure you want to delete the selected node?");
11211121
const win = new osparc.ui.window.Confirmation(msg).set({
1122+
caption: this.tr("Delete"),
11221123
confirmText: this.tr("Delete"),
11231124
confirmAction: "delete"
11241125
});
@@ -1140,6 +1141,7 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
11401141
if (preferencesSettings.getConfirmDeleteNode()) {
11411142
const msg = this.tr("Are you sure you want to delete the selected ") + nodeIds.length + " nodes?";
11421143
const win = new osparc.ui.window.Confirmation(msg).set({
1144+
caption: this.tr("Delete"),
11431145
confirmText: this.tr("Delete"),
11441146
confirmAction: "delete"
11451147
});

services/static-webserver/client/source/class/osparc/desktop/organizations/MembersList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
567567
}
568568
rUSure += "<br><br>" + this.tr("If you Leave, the page will be reloaded.");
569569
const confirmationWin = new osparc.ui.window.Confirmation(rUSure).set({
570+
caption: this.tr("Leave Organization"),
570571
confirmText: this.tr("Leave"),
571572
confirmAction: "delete"
572573
});

services/static-webserver/client/source/class/osparc/desktop/organizations/OrganizationsList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ qx.Class.define("osparc.desktop.organizations.OrganizationsList", {
236236
const name = org.getLabel();
237237
const msg = this.tr("Are you sure you want to delete ") + name + "?";
238238
const win = new osparc.ui.window.Confirmation(msg).set({
239+
caption: this.tr("Delete Organization"),
239240
confirmText: this.tr("Delete"),
240241
confirmAction: "delete"
241242
});

services/static-webserver/client/source/class/osparc/desktop/paymentMethods/PaymentMethodListItem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ qx.Class.define("osparc.desktop.paymentMethods.PaymentMethodListItem", {
184184
__deletePressed: function() {
185185
const msg = this.tr("Are you sure you want to delete the Payment Method?");
186186
const win = new osparc.ui.window.Confirmation(msg).set({
187+
caption: this.tr("Delete Payment Method"),
187188
confirmText: this.tr("Delete"),
188189
confirmAction: "delete"
189190
});

0 commit comments

Comments
 (0)