tango-app-ui-manage-tickets 3.7.0-beta.72 → 3.7.0-beta.74

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.
@@ -4688,6 +4688,7 @@ class TicketFootfallNewComponent {
4688
4688
  this.selectedCommentCategory = null;
4689
4689
  this.resetSelections();
4690
4690
  this.allSelected = false;
4691
+ this.closeMultiple = true;
4691
4692
  }
4692
4693
  isCollapsed = false;
4693
4694
  toggleSidebar() {
@@ -4762,6 +4763,7 @@ class TicketFootfallNewComponent {
4762
4763
  this.selectedStores = [store];
4763
4764
  this.footfallTicketsData = [];
4764
4765
  this.startTicketData = store;
4766
+ this.isCheckboxEnable = false;
4765
4767
  this.dataStoreView(store);
4766
4768
  this.newallSelected =
4767
4769
  this.selectedStores.length === this.openTicketsList.length &&
@@ -4928,6 +4930,11 @@ class TicketFootfallNewComponent {
4928
4930
  (tickets || []).forEach((ticket) => {
4929
4931
  const mappingInfo = ticket?._source?.mappingInfo || [];
4930
4932
  mappingInfo.forEach((mapping) => {
4933
+ // if(mapping.status ==='Open'){
4934
+ // this.isCheckboxEnable =false;
4935
+ // } else if(mapping?.status === "In-Progress"){
4936
+ // this.isCheckboxEnable =true;
4937
+ // }
4931
4938
  if (mapping?.status === "In-Progress" &&
4932
4939
  ["review", "approve"].includes(mapping.type)) {
4933
4940
  this.ticketStatus = mapping?.createdByEmail;
@@ -5232,7 +5239,6 @@ class TicketFootfallNewComponent {
5232
5239
  this.allSelected = false;
5233
5240
  const ticket = data?.ticketId;
5234
5241
  this.ticketId = data?.ticketId;
5235
- console.log("====", this.ticketId);
5236
5242
  this.lastSelectedTicket = ticket;
5237
5243
  this.addStoreIfNotExists(ticket);
5238
5244
  this.imageUrl = this.service?.footfallCDN;
@@ -5248,7 +5254,7 @@ class TicketFootfallNewComponent {
5248
5254
  this.footfallTicketsData = [];
5249
5255
  this.footfallNoData = true;
5250
5256
  this.footfallLoading = false;
5251
- this.ts.getErrorToast("No data found for the selected filters");
5257
+ this.ts.getErrorToast("No open tickets available based on the applied filters");
5252
5258
  }
5253
5259
  else {
5254
5260
  this.footfallTicketsData = res?.data?.result ?? [];
@@ -6085,7 +6091,7 @@ class TicketFootfallNewComponent {
6085
6091
  // this.ts.getErrorToast('Please select at least one ticket');
6086
6092
  // return;
6087
6093
  // }
6088
- let ticketList;
6094
+ let ticketList = [];
6089
6095
  if (this.selectedStores?.length) {
6090
6096
  // When multiple stores are selected
6091
6097
  ticketList = this.selectedStores.map((store) => ({
@@ -6112,6 +6118,7 @@ class TicketFootfallNewComponent {
6112
6118
  this.viewTicket(this.tangoType);
6113
6119
  this.selectedStores = [];
6114
6120
  this.allSelected = false;
6121
+ this.closeMultiple = true;
6115
6122
  }
6116
6123
  else {
6117
6124
  // this.toastService.getErrorToast('Failed to close tickets');