* Translate modals * Fix issues * Fix ussies
This commit is contained in:
parent
ffbfb9de22
commit
7379e1ef02
|
@ -44,7 +44,7 @@ export const ConfirmationButtonTypes = {
|
||||||
* @property {String=} title - If given, shows a title on the confirm modal.
|
* @property {String=} title - If given, shows a title on the confirm modal.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.factory('confirmModal', function ($rootScope, $compile) {
|
module.factory('confirmModal', function ($rootScope, $compile, i18n) {
|
||||||
let modalPopover;
|
let modalPopover;
|
||||||
const confirmQueue = [];
|
const confirmQueue = [];
|
||||||
|
|
||||||
|
@ -55,7 +55,9 @@ module.factory('confirmModal', function ($rootScope, $compile) {
|
||||||
return function confirmModal(message, customOptions) {
|
return function confirmModal(message, customOptions) {
|
||||||
const defaultOptions = {
|
const defaultOptions = {
|
||||||
onCancel: noop,
|
onCancel: noop,
|
||||||
cancelButtonText: 'Cancel',
|
cancelButtonText: i18n('common.ui.modals.cancelButtonLabel', {
|
||||||
|
defaultMessage: 'Cancel'
|
||||||
|
}),
|
||||||
defaultFocusedButton: ConfirmationButtonTypes.CONFIRM
|
defaultFocusedButton: ConfirmationButtonTypes.CONFIRM
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue