@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.
- package/clipper.common/common/services/clipper.service.d.ts +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +5 -8
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +2 -2
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/package.json +12 -12
|
@@ -2469,13 +2469,11 @@ class ClipperService {
|
|
|
2469
2469
|
if (this.loggedIn()) {
|
|
2470
2470
|
let channels = [];
|
|
2471
2471
|
this.loginInfo?.channels?.forEach(n => {
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
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]);
|