@arsedizioni/ars-utils 19.1.54 → 19.1.56

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.
@@ -119,7 +119,7 @@ export declare class ClipperService implements OnDestroy {
119
119
  /**
120
120
  * Initialize channels
121
121
  */
122
- initializeChannels(): void;
122
+ private initializeChannels;
123
123
  /**
124
124
  * Update channels
125
125
  * @param values : the new channel values
@@ -2469,13 +2469,11 @@ class ClipperService {
2469
2469
  if (this.loggedIn()) {
2470
2470
  let channels = [];
2471
2471
  this.loginInfo?.channels?.forEach(n => {
2472
- if (n.isActive) {
2473
- const channel = ClipperChannels.find(x => x.value === n.channelId);
2474
- if (channel) {
2475
- channel.disabled = n.isEnabled !== true;
2476
- channel.parentValue = n.channelId;
2477
- channels.push(channel);
2478
- }
2472
+ const channel = ClipperChannels.find(x => x.value === n.channelId);
2473
+ if (channel) {
2474
+ channel.disabled = !n.isActive;
2475
+ channel.active = n.isActive === true && n.isEnabled === true;
2476
+ channels.push(channel);
2479
2477
  }
2480
2478
  });
2481
2479
  this.availableChannels.set(channels);
@@ -2489,7 +2487,6 @@ class ClipperService {
2489
2487
  this.availableChannels().forEach(channel => {
2490
2488
  if (!channel.disabled) {
2491
2489
  channel.active = values?.findIndex(x => x.value === channel.value) !== -1;
2492
- channel.parentValue = values?.find(x => x.value === channel.value)?.value ?? ClipperChannel.None;
2493
2490
  }
2494
2491
  });
2495
2492
  this.availableChannels.update(values => [...values]);