@wavemaker-ai/app-ng-runtime 1.0.0-rc.322 → 1.0.0-rc.324

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.
@@ -3008,6 +3008,9 @@
3008
3008
  this.binditemtarget = this.nativeElement.getAttribute('itemtarget.bind');
3009
3009
  this.binduserrole = this.nativeElement.getAttribute('userrole.bind');
3010
3010
  this.bindisactive = this.nativeElement.getAttribute('isactive.bind');
3011
+ this.cancelLocaleChangeSubscription = this.getAppInstance().subscribe('locale-changed', () => {
3012
+ this._resetNodes();
3013
+ });
3011
3014
  }
3012
3015
  /**
3013
3016
  * constructs individual node for the widget model.
@@ -3148,6 +3151,9 @@
3148
3151
  super.onPropertyChange(key, nv, ov);
3149
3152
  }
3150
3153
  ngOnDestroy() {
3154
+ if (this.cancelLocaleChangeSubscription) {
3155
+ this.cancelLocaleChangeSubscription();
3156
+ }
3151
3157
  // MEMORY LEAK FIX: Cancel debounced function
3152
3158
  if (this._resetNodes && this._resetNodes.cancel) {
3153
3159
  this._resetNodes.cancel();
@@ -3006,6 +3006,9 @@ class DatasetAwareNavComponent extends StylableComponent {
3006
3006
  this.binditemtarget = this.nativeElement.getAttribute('itemtarget.bind');
3007
3007
  this.binduserrole = this.nativeElement.getAttribute('userrole.bind');
3008
3008
  this.bindisactive = this.nativeElement.getAttribute('isactive.bind');
3009
+ this.cancelLocaleChangeSubscription = this.getAppInstance().subscribe('locale-changed', () => {
3010
+ this._resetNodes();
3011
+ });
3009
3012
  }
3010
3013
  /**
3011
3014
  * constructs individual node for the widget model.
@@ -3146,6 +3149,9 @@ class DatasetAwareNavComponent extends StylableComponent {
3146
3149
  super.onPropertyChange(key, nv, ov);
3147
3150
  }
3148
3151
  ngOnDestroy() {
3152
+ if (this.cancelLocaleChangeSubscription) {
3153
+ this.cancelLocaleChangeSubscription();
3154
+ }
3149
3155
  // MEMORY LEAK FIX: Cancel debounced function
3150
3156
  if (this._resetNodes && this._resetNodes.cancel) {
3151
3157
  this._resetNodes.cancel();