@gravitee/ui-particles-angular 5.9.0-slide-toggle-31192ff → 5.9.0-slide-toggle-bfd7539

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.
@@ -3276,17 +3276,17 @@ class GioFormSlideToggleComponent {
3276
3276
  this.disabled = false;
3277
3277
  }
3278
3278
  ngAfterContentInit() {
3279
- let observeDisabled = undefined;
3279
+ let isDisabled$ = undefined;
3280
3280
  // Check if disabled is delegated to inner FormControlName
3281
3281
  if (this.innerFormControlName) {
3282
- observeDisabled = this.innerFormControlName.statusChanges?.pipe(map(() => !!this.innerFormControlName?.disabled), startWith(!!this.innerFormControlName.disabled));
3282
+ isDisabled$ = this.innerFormControlName.statusChanges?.pipe(map(() => !!this.innerFormControlName?.disabled), startWith(!!this.innerFormControlName.disabled));
3283
3283
  }
3284
3284
  // If not, check state of inner MatSlideToggle
3285
3285
  else if (this.innerMatSlideToggle) {
3286
- observeDisabled = this.innerMatSlideToggle.change.pipe(map(event => event.source.disabled), startWith(this.innerMatSlideToggle.disabled));
3286
+ isDisabled$ = this.innerMatSlideToggle.change.pipe(map(event => event.source.disabled), startWith(this.innerMatSlideToggle.disabled));
3287
3287
  }
3288
- if (observeDisabled) {
3289
- observeDisabled.pipe(takeUntil(this.unsubscribe$)).subscribe(disabled => {
3288
+ if (isDisabled$) {
3289
+ isDisabled$.pipe(takeUntil(this.unsubscribe$)).subscribe(disabled => {
3290
3290
  this.disabled = disabled;
3291
3291
  });
3292
3292
  }