tango-app-ui-manage-tickets 3.7.0-beta.71 → 3.7.0-beta.73

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.
@@ -4007,11 +4007,6 @@ class TicketFootfallNewComponent {
4007
4007
  getHeaderStatus() {
4008
4008
  // Default: ticket-level status
4009
4009
  let headerStatus = this.ticketData?.status || "--";
4010
- // if(headerStatus === 'Open'){
4011
- // this.isCheckboxEnable =false;
4012
- // } else if(headerStatus === 'In-Progress'){
4013
- // this.isCheckboxEnable =true;
4014
- // }
4015
4010
  if (!this.footfallTicketsData || !this.footfallTicketsData.length) {
4016
4011
  return headerStatus;
4017
4012
  }
@@ -4063,6 +4058,11 @@ class TicketFootfallNewComponent {
4063
4058
  }
4064
4059
  // Save for other places if needed
4065
4060
  this.statusVal = roleMapping;
4061
+ // if(this.statusVal?.status === 'Open'){
4062
+ // this.isCheckboxEnable =false;
4063
+ // } else if(this.statusVal?.status === 'In-Progress'){
4064
+ // this.isCheckboxEnable =true;
4065
+ // }
4066
4066
  if (roleMapping?.status) {
4067
4067
  this.areAllItemsReviewed(roleMapping); // keep your side-effect
4068
4068
  headerStatus = roleMapping.status; // "Open", "In-Progress", "Closed", etc.
@@ -4762,6 +4762,7 @@ class TicketFootfallNewComponent {
4762
4762
  this.selectedStores = [store];
4763
4763
  this.footfallTicketsData = [];
4764
4764
  this.startTicketData = store;
4765
+ this.isCheckboxEnable = false;
4765
4766
  this.dataStoreView(store);
4766
4767
  this.newallSelected =
4767
4768
  this.selectedStores.length === this.openTicketsList.length &&
@@ -4928,6 +4929,11 @@ class TicketFootfallNewComponent {
4928
4929
  (tickets || []).forEach((ticket) => {
4929
4930
  const mappingInfo = ticket?._source?.mappingInfo || [];
4930
4931
  mappingInfo.forEach((mapping) => {
4932
+ // if(mapping.status ==='Open'){
4933
+ // this.isCheckboxEnable =false;
4934
+ // } else if(mapping?.status === "In-Progress"){
4935
+ // this.isCheckboxEnable =true;
4936
+ // }
4931
4937
  if (mapping?.status === "In-Progress" &&
4932
4938
  ["review", "approve"].includes(mapping.type)) {
4933
4939
  this.ticketStatus = mapping?.createdByEmail;
@@ -5232,7 +5238,6 @@ class TicketFootfallNewComponent {
5232
5238
  this.allSelected = false;
5233
5239
  const ticket = data?.ticketId;
5234
5240
  this.ticketId = data?.ticketId;
5235
- console.log("====", this.ticketId);
5236
5241
  this.lastSelectedTicket = ticket;
5237
5242
  this.addStoreIfNotExists(ticket);
5238
5243
  this.imageUrl = this.service?.footfallCDN;
@@ -5735,7 +5740,30 @@ class TicketFootfallNewComponent {
5735
5740
  this.modalService.dismissAll();
5736
5741
  this.closeBtn = false;
5737
5742
  this.closeDisabled = true;
5738
- this.dataStoreView(this.ticketData);
5743
+ const obj = {
5744
+ clientId: [this.headerFilters?.client],
5745
+ fromDate: this.headerFilters?.date?.startDate,
5746
+ toDate: this.headerFilters?.date?.endDate,
5747
+ type: this.hasApproverAccess && this.selectedRole == "approver"
5748
+ ? "approve"
5749
+ : "review",
5750
+ sortOrder: this.sortOpen,
5751
+ searchValue: this.StoresSearchValue,
5752
+ };
5753
+ this.service
5754
+ .getOpenTicketListApi(obj)
5755
+ .pipe(takeUntil(this.destroy$))
5756
+ .subscribe({
5757
+ next: (res) => {
5758
+ if (res && res?.code === 200) {
5759
+ this.openTicketsList = res?.data ?? [];
5760
+ console.log(this.openTicketsList[0]);
5761
+ this.toggleStoreSelection(this.openTicketsList[0]);
5762
+ this.startTicketData = this.openTicketsList[0];
5763
+ this.dataStoreView(this.openTicketsList[0]);
5764
+ }
5765
+ }
5766
+ });
5739
5767
  }
5740
5768
  else {
5741
5769
  this.closeBtn = true;