@saooti/octopus-sdk 37.1.1 → 37.1.2
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/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<ClassicLazy
|
|
5
5
|
v-for="c in categories"
|
|
6
6
|
:key="c.id"
|
|
7
|
-
:min-height="
|
|
7
|
+
:min-height="0"
|
|
8
8
|
:unrender="true"
|
|
9
9
|
>
|
|
10
10
|
<PodcastInlineList
|
|
@@ -12,13 +12,16 @@
|
|
|
12
12
|
:title="c.name"
|
|
13
13
|
:button-text="$t('All podcast button', { name: c.name })"
|
|
14
14
|
/>
|
|
15
|
+
<template #preview>
|
|
16
|
+
<div style="min-height: 650px"></div>
|
|
17
|
+
</template>
|
|
15
18
|
</ClassicLazy>
|
|
16
19
|
</template>
|
|
17
20
|
<template v-else>
|
|
18
21
|
<ClassicLazy
|
|
19
22
|
v-for="r in rubriqueToShow"
|
|
20
23
|
:key="r.rubriqueId"
|
|
21
|
-
:min-height="
|
|
24
|
+
:min-height="0"
|
|
22
25
|
:unrender="true"
|
|
23
26
|
>
|
|
24
27
|
<PodcastInlineList
|
|
@@ -26,6 +29,9 @@
|
|
|
26
29
|
:title="r.name"
|
|
27
30
|
:button-text="$t('All podcast button', { name: r.name })"
|
|
28
31
|
/>
|
|
32
|
+
<template #preview>
|
|
33
|
+
<div style="min-height: 650px"></div>
|
|
34
|
+
</template>
|
|
29
35
|
</ClassicLazy>
|
|
30
36
|
<template v-if="rubriqueDisplay && rubriqueDisplay.length > 0">
|
|
31
37
|
<PodcastInlineList
|
|
@@ -81,7 +87,7 @@ export default defineComponent({
|
|
|
81
87
|
};
|
|
82
88
|
},
|
|
83
89
|
computed: {
|
|
84
|
-
...mapState(useGeneralStore, ["storedCategories"]),
|
|
90
|
+
...mapState(useGeneralStore, ["storedCategories", "storedCategoriesOrga"]),
|
|
85
91
|
...mapState(useFilterStore, [
|
|
86
92
|
"filterRubriquage",
|
|
87
93
|
"filterOrgaId",
|
|
@@ -121,15 +127,23 @@ export default defineComponent({
|
|
|
121
127
|
return this.filterRubrique;
|
|
122
128
|
},
|
|
123
129
|
categories(): Array<Category> {
|
|
130
|
+
let arrayCategories: Array<Category> = [];
|
|
124
131
|
if (this.filterIab) {
|
|
125
132
|
return [this.filterIab];
|
|
126
133
|
}
|
|
127
|
-
|
|
128
|
-
|
|
134
|
+
if (this.filterOrgaId) {
|
|
135
|
+
arrayCategories = this.storedCategoriesOrga.filter((c: Category) => {
|
|
129
136
|
return c.podcastOrganisationCount;
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
137
|
+
});
|
|
138
|
+
} else {
|
|
139
|
+
arrayCategories = this.storedCategories.filter((c: Category) => {
|
|
140
|
+
if (state.generalParameters.podcastmaker) return c.podcastOrganisationCount;
|
|
141
|
+
return c.podcastCount;
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
this.$emit("categoriesLength", arrayCategories.length);
|
|
145
|
+
return arrayCategories;
|
|
146
|
+
}
|
|
133
147
|
},
|
|
134
148
|
watch: {
|
|
135
149
|
rubriqueFilter: {
|