Skip to content

Commit

Permalink
added title msg from en.json
Browse files Browse the repository at this point in the history
  • Loading branch information
pragati-atharva committed Sep 23, 2022
1 parent f8bca5f commit 2f27959
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { Injectable } from '@angular/core';
import Swal from 'sweetalert2';
import { CommonService } from '../common/common.service';

@Injectable({
providedIn: 'root',
})
export class CustomSweetalertService {
constructor() {}
constructor(private commonService : CommonService) {}


sweetAlertMethod(
title: string,
Expand All @@ -19,7 +21,7 @@ export class CustomSweetalertService {
focusDeny?: boolean
) {
Swal.fire({
title: title,
title: this.commonService.getTranslateData(title),
showDenyButton: showDenyButton || true,
denyButtonText: denyButtonText || 'NO',
confirmButtonText: confirmButtonText || 'YES',
Expand Down

0 comments on commit 2f27959

Please sign in to comment.