Skip to content

Commit d7661c4

Browse files
committed
latest swal2 version requires "icon" 4 "type" prop
1 parent 475a53a commit d7661c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

angular/src/assets/abp-web-resources/abp.sweet-alert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var abp = abp || {};
1414

1515
options = options || {};
1616
options.title = title;
17-
options.type = type;
17+
options.icon = type;
1818
options.confirmButtonText =
1919
options.confirmButtonText || abp.localization.abpWeb("Ok");
2020

@@ -60,7 +60,7 @@ var abp = abp || {};
6060

6161
options = options || {};
6262
options.title = title ? title : abp.localization.abpWeb("AreYouSure");
63-
options.type = "warning";
63+
options.icon = "warning";
6464

6565
options.confirmButtonText =
6666
options.confirmButtonText || abp.localization.abpWeb("Yes");

0 commit comments

Comments
 (0)