MOBILE-4630 dom: Use multilang filter in showDeleteConfirm

main
Alfonso Salces 2024-07-22 09:17:07 +02:00
parent fd9577cfbf
commit 001fba65cb
1 changed files with 4 additions and 3 deletions

View File

@ -934,14 +934,15 @@ export class CoreDomUtilsProvider {
* @param options More options. See https://ionicframework.com/docs/v3/api/components/alert/AlertController/
* @returns Promise resolved if the user confirms and rejected with a canceled error if he cancels.
*/
showDeleteConfirm(
async showDeleteConfirm(
translateMessage: string = 'core.areyousure',
translateArgs: Record<string, unknown> = {},
options: AlertOptions = {},
): Promise<void> {
return new Promise((resolve, reject): void => {
options.message = Translate.instant(translateMessage, translateArgs);
options.message = await CoreLang.filterMultilang(options.message);
return new Promise((resolve, reject): void => {
options.buttons = [
{
text: Translate.instant('core.cancel'),