[IMP] web: change label of delete modal confirm button
This commit changes the label of the delete modal confirm button from 'Ok' to 'Delete'. TaskID-3264614 closes odoo/odoo#119025 Related: odoo/enterprise#40487 Signed-off-by: Stéphane Debauche (std) <std@odoo.com>
This commit is contained in:
@@ -205,6 +205,7 @@ export class CalendarController extends Component {
|
||||
confirm: () => {
|
||||
this.model.unlinkRecord(record.id);
|
||||
},
|
||||
confirmLabel: _lt("Delete"),
|
||||
cancel: () => {
|
||||
// `ConfirmationDialog` needs this prop to display the cancel
|
||||
// button but we do nothing on cancel.
|
||||
|
||||
@@ -373,6 +373,7 @@ export class FormController extends Component {
|
||||
this.env.config.historyBack();
|
||||
}
|
||||
},
|
||||
confirmLabel: this.env._t("Delete"),
|
||||
cancel: () => {},
|
||||
};
|
||||
this.dialogService.add(ConfirmationDialog, dialogProps);
|
||||
|
||||
@@ -136,6 +136,7 @@ export class KanbanHeader extends Component {
|
||||
confirm: async () => {
|
||||
this.props.deleteGroup(this.group);
|
||||
},
|
||||
confirmLabel: this.env._t("Delete"),
|
||||
cancel: () => {},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -308,6 +308,7 @@ export class KanbanRecord extends Component {
|
||||
this.dialog.add(ConfirmationDialog, {
|
||||
body: env._t("Are you sure you want to delete this record?"),
|
||||
confirm: () => listOrGroup.deleteRecords([record]),
|
||||
confirmLabel: env._t("Delete"),
|
||||
cancel: () => {},
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -509,6 +509,7 @@ export class ListController extends Component {
|
||||
);
|
||||
}
|
||||
},
|
||||
confirmLabel: this.env._t("Delete"),
|
||||
cancel: () => {},
|
||||
};
|
||||
this.dialogService.add(ConfirmationDialog, dialogProps);
|
||||
|
||||
Reference in New Issue
Block a user