@saooti/octopus-sdk 41.10.4 → 41.10.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
-
## 41.10.
|
|
3
|
+
## 41.10.5 (26/05/2026)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
6
|
+
|
|
7
|
+
- Possibilité de désactiver l'affichage des podcasts dans `EmissionPlayerItem`
|
|
8
|
+
|
|
9
|
+
**Fixes**
|
|
10
|
+
|
|
11
|
+
- **14486** - Tri des saisons sur la page d'émission
|
|
12
|
+
|
|
13
|
+
## 41.10.4 (13/05/2026)
|
|
4
14
|
|
|
5
15
|
**Fixes**
|
|
6
16
|
|
package/package.json
CHANGED
|
@@ -103,6 +103,7 @@ const PodcastPlayBasicButton = defineAsyncComponent(() => import("../podcasts/Po
|
|
|
103
103
|
//Props
|
|
104
104
|
const props = defineProps({
|
|
105
105
|
emission: { default: () => ({}), type: Object as () => Emission },
|
|
106
|
+
/** Number of podcasts to display (default: 2); if set to 0, no podcasts will be displayed */
|
|
106
107
|
nbPodcasts: { default: undefined, type: Number },
|
|
107
108
|
rubriqueName: { default: undefined, type: String },
|
|
108
109
|
})
|
|
@@ -125,6 +126,10 @@ onBeforeMount(()=>loadPodcasts())
|
|
|
125
126
|
|
|
126
127
|
//Methods
|
|
127
128
|
async function loadPodcasts(): Promise<void> {
|
|
129
|
+
if (props.nbPodcasts === 0) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
|
|
128
133
|
const nb = props.nbPodcasts ? props.nbPodcasts : 2;
|
|
129
134
|
const data = await classicApi.fetchData<ListClassicReturn<Podcast>>({
|
|
130
135
|
api: 0,
|
|
@@ -41,11 +41,15 @@
|
|
|
41
41
|
v-model:active-tab="activeSeasonTab"
|
|
42
42
|
:tab-number="emission.seasons.length"
|
|
43
43
|
>
|
|
44
|
-
<template v-for="(season, i) in
|
|
44
|
+
<template v-for="(season, i) in seasons" #[tabNameSlot(i)]>
|
|
45
45
|
{{ $t('Podcast - Season N', { season }) }}
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
|
-
<template
|
|
48
|
+
<template
|
|
49
|
+
v-for="(season, i) in seasons"
|
|
50
|
+
#[tabContentSlot(i)]
|
|
51
|
+
:key="season"
|
|
52
|
+
>
|
|
49
53
|
<PodcastList
|
|
50
54
|
class="flex-grow-1"
|
|
51
55
|
:first="dfirst"
|
|
@@ -137,6 +141,8 @@ const showSeasons = computed(() => {
|
|
|
137
141
|
return props.emission !== undefined && areSeasonsEnabled(props.emission) && (props.emission.seasons?.length ?? 0) > 0;
|
|
138
142
|
});
|
|
139
143
|
|
|
144
|
+
const seasons = computed((): Array<number> => [...props.emission.seasons].sort());
|
|
145
|
+
|
|
140
146
|
const activeSeasonTab = ref(showSeasons.value ? props.emission.seasons?.indexOf(getMaxSeason(props.emission)) ?? 0 : 0);
|
|
141
147
|
|
|
142
148
|
const sort = computed((): PodcastSort => {
|