@posiwise/admin-module 0.0.224 → 0.0.225

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -234,7 +234,12 @@ class GlobalConfigListComponent extends AppBaseComponent {
234
234
  });
235
235
  }
236
236
  onDelete(id) {
237
- this.confirmDialog.confirmDelete().then(ok => {
237
+ this.confirmDialog
238
+ .confirmDelete({
239
+ textKey: 'Common.Confirm.Delete.TextSimple',
240
+ textParams: { entityType: 'global config' }
241
+ })
242
+ .then(ok => {
238
243
  if (!ok) {
239
244
  return;
240
245
  }
@@ -433,7 +438,12 @@ class CredentialsComponent extends AppBaseComponent {
433
438
  }
434
439
  /** Function to delete credential */
435
440
  onDelete(credential) {
436
- this.confirmDialog.confirmDelete().then(ok => {
441
+ this.confirmDialog
442
+ .confirmDelete({
443
+ textKey: 'Common.Confirm.Delete.Text',
444
+ textParams: { name: credential?.name }
445
+ })
446
+ .then(ok => {
437
447
  if (!ok) {
438
448
  return;
439
449
  }
@@ -603,7 +613,12 @@ class SubscriptionCredentialsComponent extends AppBaseComponent {
603
613
  }
604
614
  /** Function to delete subscription credentials */
605
615
  onDelete(id) {
606
- this.confirmDialog.confirmDelete().then(ok => {
616
+ this.confirmDialog
617
+ .confirmDelete({
618
+ textKey: 'Common.Confirm.Delete.TextSimple',
619
+ textParams: { entityType: 'subscription credential' }
620
+ })
621
+ .then(ok => {
607
622
  if (!ok) {
608
623
  return;
609
624
  }
@@ -2225,7 +2240,12 @@ class DomainConfigListComponent extends AppBaseComponent {
2225
2240
  });
2226
2241
  }
2227
2242
  onDelete(id) {
2228
- this.confirmDialog.confirmDelete().then(ok => {
2243
+ this.confirmDialog
2244
+ .confirmDelete({
2245
+ textKey: 'Common.Confirm.Delete.TextSimple',
2246
+ textParams: { entityType: 'domain config' }
2247
+ })
2248
+ .then(ok => {
2229
2249
  if (!ok) {
2230
2250
  return;
2231
2251
  }
@@ -2619,7 +2639,12 @@ class FaqListComponent extends AppBaseComponent {
2619
2639
  }
2620
2640
  }
2621
2641
  onDelete(faq) {
2622
- this.confirmDialog.confirmDelete().then(ok => {
2642
+ this.confirmDialog
2643
+ .confirmDelete({
2644
+ textKey: 'Common.Confirm.Delete.Text',
2645
+ textParams: { name: faq?.question }
2646
+ })
2647
+ .then(ok => {
2623
2648
  if (!ok) {
2624
2649
  return;
2625
2650
  }
@@ -3232,7 +3257,12 @@ class FeedbackQuestionsListComponent extends AppBaseComponent {
3232
3257
  });
3233
3258
  }
3234
3259
  onDelete(id) {
3235
- this.confirmDialog.confirmDelete().then(ok => {
3260
+ this.confirmDialog
3261
+ .confirmDelete({
3262
+ textKey: 'Common.Confirm.Delete.TextSimple',
3263
+ textParams: { entityType: 'feedback question' }
3264
+ })
3265
+ .then(ok => {
3236
3266
  if (!ok) {
3237
3267
  return;
3238
3268
  }
@@ -3623,7 +3653,12 @@ class IncidentListComponent extends AppBaseComponent {
3623
3653
  });
3624
3654
  }
3625
3655
  onDelete(incident) {
3626
- this.confirmDialog.confirmDelete().then(ok => {
3656
+ this.confirmDialog
3657
+ .confirmDelete({
3658
+ textKey: 'Common.Confirm.Delete.TextSimple',
3659
+ textParams: { entityType: 'incident' }
3660
+ })
3661
+ .then(ok => {
3627
3662
  if (!ok) {
3628
3663
  return;
3629
3664
  }
@@ -3852,11 +3887,18 @@ class LoginNotificationsListComponent extends AppBaseComponent {
3852
3887
  });
3853
3888
  }
3854
3889
  onDelete(id) {
3855
- this.confirmDialog.confirmDelete().then(ok => {
3890
+ this.confirmDialog
3891
+ .confirmDelete({
3892
+ textKey: 'Common.Confirm.Delete.TextSimple',
3893
+ textParams: { entityType: 'login notification' }
3894
+ })
3895
+ .then(ok => {
3856
3896
  if (!ok) {
3857
3897
  return;
3858
3898
  }
3859
- this.adminService.deleteLoginNotification(id, this.subscriptionId).subscribe(res => {
3899
+ this.adminService
3900
+ .deleteLoginNotification(id, this.subscriptionId)
3901
+ .subscribe(res => {
3860
3902
  this.toast.success(res?.message);
3861
3903
  this.getLoginNotifications({
3862
3904
  page: this.page,
@@ -4062,7 +4104,12 @@ class MailerListComponent extends AppBaseComponent {
4062
4104
  });
4063
4105
  }
4064
4106
  onDelete(item) {
4065
- this.confirmDialog.confirmDelete().then(ok => {
4107
+ this.confirmDialog
4108
+ .confirmDelete({
4109
+ textKey: 'Common.Confirm.Delete.Text',
4110
+ textParams: { name: item?.subject }
4111
+ })
4112
+ .then(ok => {
4066
4113
  if (!ok) {
4067
4114
  return;
4068
4115
  }
@@ -5018,7 +5065,12 @@ class PermissionsListComponent extends AppBaseComponent {
5018
5065
  });
5019
5066
  }
5020
5067
  onDelete(permission) {
5021
- this.confirmDialog.confirmDelete().then(ok => {
5068
+ this.confirmDialog
5069
+ .confirmDelete({
5070
+ textKey: 'Common.Confirm.Delete.Text',
5071
+ textParams: { name: permission?.name }
5072
+ })
5073
+ .then(ok => {
5022
5074
  if (!ok) {
5023
5075
  return;
5024
5076
  }
@@ -9153,7 +9205,12 @@ class TermsOfServiceComponent extends AppBaseComponent {
9153
9205
  }
9154
9206
  /** Function to delete tos */
9155
9207
  onDelete(id) {
9156
- this.confirmDialog.confirmDelete().then(ok => {
9208
+ this.confirmDialog
9209
+ .confirmDelete({
9210
+ textKey: 'Common.Confirm.Delete.TextSimple',
9211
+ textParams: { entityType: 'terms of service' }
9212
+ })
9213
+ .then(ok => {
9157
9214
  if (!ok) {
9158
9215
  return;
9159
9216
  }