tango-app-ui-manage-tickets 3.7.0-beta.41 → 3.7.0-beta.42
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.
|
@@ -4002,40 +4002,30 @@ class TicketFootfallNewComponent {
|
|
|
4002
4002
|
isSelected(store) {
|
|
4003
4003
|
return this.selectedStores.includes(store);
|
|
4004
4004
|
}
|
|
4005
|
-
// when user clicks on a single store checkbox
|
|
4006
4005
|
toggleStoreSelection(store) {
|
|
4007
4006
|
if (this.isSelected(store)) {
|
|
4008
|
-
// remove
|
|
4009
4007
|
this.selectedStores = this.selectedStores.filter((s) => s !== store);
|
|
4010
4008
|
}
|
|
4011
4009
|
else {
|
|
4012
|
-
// add (if you want single select, use: this.selectedStores = [store];)
|
|
4013
4010
|
this.selectedStores = [...this.selectedStores, store];
|
|
4014
|
-
// call API for this store
|
|
4015
|
-
// this.handleStoreSelected(store);
|
|
4016
4011
|
}
|
|
4017
|
-
|
|
4012
|
+
this.closeMultiple = (this.selectedStores.length > 1) ? false : true;
|
|
4018
4013
|
this.allSelected =
|
|
4019
4014
|
this.selectedStores.length === this.openTicketsList.length &&
|
|
4020
4015
|
this.openTicketsList.length > 0;
|
|
4021
4016
|
}
|
|
4022
|
-
// when user clicks on "Select All"
|
|
4023
4017
|
toggleSelectAll() {
|
|
4024
4018
|
if (this.allSelected) {
|
|
4025
|
-
// unselect everything
|
|
4026
4019
|
this.selectedStores = [];
|
|
4027
4020
|
this.allSelected = false;
|
|
4028
4021
|
}
|
|
4029
4022
|
else {
|
|
4030
|
-
// select all visible stores
|
|
4031
4023
|
this.selectedStores = [...this.openTicketsList];
|
|
4032
4024
|
this.allSelected = true;
|
|
4033
|
-
// usually no need to call detail API here, but you can if you want
|
|
4034
4025
|
}
|
|
4035
4026
|
}
|
|
4036
4027
|
ticketViewChanges(store) {
|
|
4037
4028
|
this.dataStoreView(store);
|
|
4038
|
-
// single selection on row click
|
|
4039
4029
|
this.selectedStores = [store];
|
|
4040
4030
|
this.allSelected =
|
|
4041
4031
|
this.selectedStores.length === this.openTicketsList.length &&
|
|
@@ -4555,10 +4545,8 @@ class TicketFootfallNewComponent {
|
|
|
4555
4545
|
});
|
|
4556
4546
|
});
|
|
4557
4547
|
this.revopsTypes = Array.from(types);
|
|
4558
|
-
console.log('Revops types:', this.revopsTypes);
|
|
4559
4548
|
}
|
|
4560
4549
|
hasRevopsType(type) {
|
|
4561
|
-
console.log(type);
|
|
4562
4550
|
return this.revopsTypes.includes(type);
|
|
4563
4551
|
}
|
|
4564
4552
|
overallSelectedIds;
|
|
@@ -5412,10 +5400,10 @@ class TicketFootfallNewComponent {
|
|
|
5412
5400
|
// this.exportTicket();
|
|
5413
5401
|
}
|
|
5414
5402
|
getMultipleTicketClose() {
|
|
5415
|
-
if (!this.selectedStores || !this.selectedStores.length) {
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
}
|
|
5403
|
+
// if (!this.selectedStores || !this.selectedStores.length) {
|
|
5404
|
+
// this.ts.getErrorToast('Please select at least one ticket');
|
|
5405
|
+
// return;
|
|
5406
|
+
// }
|
|
5419
5407
|
const ticketList = this.selectedStores.map((store) => ({
|
|
5420
5408
|
storeId: store.storeId,
|
|
5421
5409
|
dateString: store.dateString || store.issueDate,
|