@saooti/octopus-sdk 32.0.41 → 32.0.43
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/README.md +2 -1
- package/package.json +1 -1
- package/src/components/display/categories/CategoryChooser.vue +2 -3
- package/src/components/display/emission/EmissionPlayerItem.vue +5 -1
- package/src/components/display/rubriques/RubriqueList.vue +5 -0
- package/src/components/pages/Category.vue +4 -21
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -225,7 +225,11 @@ export default defineComponent({
|
|
|
225
225
|
});
|
|
226
226
|
},
|
|
227
227
|
play(podcast: Podcast): void {
|
|
228
|
-
|
|
228
|
+
if (podcast === this.$store.state.player.podcast) {
|
|
229
|
+
this.$store.commit('playerPause', false);
|
|
230
|
+
} else {
|
|
231
|
+
this.$store.commit('playerPlayPodcast', podcast);
|
|
232
|
+
}
|
|
229
233
|
},
|
|
230
234
|
pause(): void {
|
|
231
235
|
this.$store.commit('playerPause', true);
|
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
ref="rubriqueListContainer"
|
|
5
5
|
class="rubrique-list-container"
|
|
6
6
|
>
|
|
7
|
+
<label
|
|
8
|
+
for="rubrique-list-select"
|
|
9
|
+
class="hid"
|
|
10
|
+
>{{$t('By topic')}}</label>
|
|
7
11
|
<select
|
|
12
|
+
id="rubrique-list-select"
|
|
8
13
|
v-model="rubriquage"
|
|
9
14
|
class="c-hand"
|
|
10
15
|
@change="onRubriquageSelected"
|
|
@@ -23,12 +23,6 @@ export default defineComponent({
|
|
|
23
23
|
iabId: { default: undefined, type: Number},
|
|
24
24
|
},
|
|
25
25
|
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
title: '' as string,
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
|
|
32
26
|
computed: {
|
|
33
27
|
categories(): Array<Category> {
|
|
34
28
|
return this.$store.state.categories;
|
|
@@ -36,22 +30,11 @@ export default defineComponent({
|
|
|
36
30
|
filterOrga(): string {
|
|
37
31
|
return this.$store.state.filter.organisationId;
|
|
38
32
|
},
|
|
39
|
-
|
|
40
|
-
watch: {
|
|
41
|
-
iabId(): void {
|
|
42
|
-
this.extractTitle();
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
mounted() {
|
|
47
|
-
this.extractTitle();
|
|
48
|
-
},
|
|
49
|
-
methods: {
|
|
50
|
-
extractTitle(): void {
|
|
33
|
+
title():string{
|
|
51
34
|
const matchCategories = this.categories.filter((c: Category) => c.id === this.iabId);
|
|
52
|
-
if (1 !== matchCategories.length) return;
|
|
53
|
-
|
|
54
|
-
}
|
|
35
|
+
if (1 !== matchCategories.length) return "";
|
|
36
|
+
return matchCategories[0]['name'];
|
|
37
|
+
}
|
|
55
38
|
},
|
|
56
39
|
})
|
|
57
40
|
</script>
|