tango-app-ui-manage-tickets 3.3.0-beta.5 → 3.3.0-beta.6

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.
@@ -436,40 +436,48 @@ class TicketsComponent {
436
436
  this.service
437
437
  .getSotresList({ issueType: this.type, clientId: this.headerFilters.clients })
438
438
  .pipe(takeUntil(this.destroy$))
439
- .subscribe((res) => {
440
- if (res && res.code === 200) {
441
- this.storeList = res?.data?.data;
442
- this.storeList.forEach((element) => {
443
- element.text = element.storeId;
444
- element.id = element.storeId;
445
- });
446
- if (this.users.userType === "tango") {
447
- this.getuserlist();
448
- }
449
- else {
450
- if (this.type === 'installation') {
451
- this.dataObject = [
452
- { Description: "Store ID", Issues: this.storeList },
453
- { Description: "Deployed Status", Issues: this.statusType },
454
- ];
455
- }
456
- else if (this.type === 'infra' || this.type === 'dataMismatch') {
457
- this.dataObject = [
458
- { Description: "Store ID", Issues: this.storeList },
459
- { Description: "Status", Issues: this.statusType },
460
- ];
439
+ .subscribe({
440
+ next: (res) => {
441
+ if (res && res.code === 200) {
442
+ this.storeList = res?.data?.data;
443
+ this.storeList.forEach((element) => {
444
+ element.text = element.storeId;
445
+ element.id = element.storeId;
446
+ });
447
+ if (this.users.userType === "tango") {
448
+ this.getuserlist();
461
449
  }
462
- else if (this.type === 'mat') {
463
- this.dataObject = [
464
- { Description: "Status", Issues: this.statusType },
465
- ];
450
+ else {
451
+ if (this.type === 'installation') {
452
+ this.dataObject = [
453
+ { Description: "Store ID", Issues: this.storeList },
454
+ { Description: "Deployed Status", Issues: this.statusType },
455
+ ];
456
+ }
457
+ else if (this.type === 'infra' || this.type === 'dataMismatch') {
458
+ this.dataObject = [
459
+ { Description: "Store ID", Issues: this.storeList },
460
+ { Description: "Status", Issues: this.statusType },
461
+ ];
462
+ }
463
+ else if (this.type === 'mat') {
464
+ this.dataObject = [
465
+ { Description: "Status", Issues: this.statusType },
466
+ ];
467
+ }
466
468
  }
469
+ this.getTable();
467
470
  }
468
- this.getTable();
469
- }
470
- else {
471
- this.getTable();
472
- }
471
+ else {
472
+ this.getTable();
473
+ }
474
+ },
475
+ error: (err) => {
476
+ this.loading = false;
477
+ this.noData = true;
478
+ this.cd.detectChanges();
479
+ },
480
+ complete: () => { },
473
481
  });
474
482
  }
475
483
  getuserlist() {