cat-qw-lib 0.58.2 → 0.58.5

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.
@@ -4789,16 +4789,16 @@ class WidgetMenuContainerComponent {
4789
4789
  ngOnInit() {
4790
4790
  this.handleEventFromPropertyDetails();
4791
4791
  this.handleOnViewAllDetails();
4792
- if (!this.widgetName || !this.recordId) {
4793
- console.error(ERROR.ERROR_MISSING_PARAMETERS, {
4794
- widgetName: this.widgetName || SHARED.MISSING_WIDGETNAME,
4795
- recordId: this.recordId || SHARED.MISSING_RECORD_ID
4796
- });
4797
- this.isLoading = false;
4798
- return;
4799
- }
4800
- this.getWidgetFromCacheList(this.recordId, this.widgetName);
4801
- this.getAllWidgetList(this.recordId, this.widgetName);
4792
+ // if (!this.widgetName || !this.recordId) {
4793
+ // console.error(ERROR.ERROR_MISSING_PARAMETERS, {
4794
+ // widgetName: this.widgetName || SHARED.MISSING_WIDGETNAME,
4795
+ // recordId: this.recordId || SHARED.MISSING_RECORD_ID
4796
+ // });
4797
+ // this.isLoading = false;
4798
+ // return;
4799
+ // }
4800
+ // this.getWidgetFromCacheList(this.recordId, this.widgetName);
4801
+ // this.getAllWidgetList(this.recordId, this.widgetName);
4802
4802
  this.handleGetWidgetData();
4803
4803
  this.handleWidgetItemClick();
4804
4804
  }
@@ -4870,7 +4870,20 @@ class WidgetMenuContainerComponent {
4870
4870
  if (!this.isSidebarVisible) {
4871
4871
  this.widgetStore.setOnViewPropertyDetails({ propertyId: null, isDailogShow: false });
4872
4872
  }
4873
+ if (this.recordId && this.widgetName) {
4874
+ this.getWidgetFromCacheList(this.recordId, this.widgetName);
4875
+ }
4873
4876
  if (changes['isRouteChanged'] && this.widgetName && this.recordId) {
4877
+ console.log(this.widgetName);
4878
+ console.log(this.recordId);
4879
+ if (!this.widgetName || !this.recordId) {
4880
+ console.error(ERROR.ERROR_MISSING_PARAMETERS, {
4881
+ widgetName: this.widgetName || SHARED.MISSING_WIDGETNAME,
4882
+ recordId: this.recordId || SHARED.MISSING_RECORD_ID
4883
+ });
4884
+ this.isLoading = false;
4885
+ return;
4886
+ }
4874
4887
  console.log(this.isRouteChanged);
4875
4888
  this.getAllWidgetList(this.recordId, this.widgetName);
4876
4889
  }