@saooti/octopus-sdk 32.0.18 → 32.0.19
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/playlist/PlaylistItem.vue +1 -1
- package/src/components/display/playlist/PodcastList.vue +2 -6
- package/src/components/display/podcasts/PodcastItem.vue +0 -1
- package/src/components/display/podcasts/PodcastItemInfo.vue +0 -5
package/README.md
CHANGED
|
@@ -661,4 +661,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
661
661
|
* 32.0.15 Pb lié refactor
|
|
662
662
|
* 32.0.16 Pb lié refactor
|
|
663
663
|
* 32.0.17 AdvancedSearch components
|
|
664
|
-
* 32.0.18 AdvancedSearch components
|
|
664
|
+
* 32.0.18 AdvancedSearch components
|
|
665
|
+
* 32.0.19 Playlist publique
|
package/package.json
CHANGED
|
@@ -100,7 +100,7 @@ export default defineComponent({
|
|
|
100
100
|
true == state.generalParameters.isAdmin;
|
|
101
101
|
},
|
|
102
102
|
activePlaylist(): boolean {
|
|
103
|
-
return 0 !== Object.keys(this.playlist.samplingViews).length;
|
|
103
|
+
return 0 !== Object.keys(this.playlist.samplingViews??[]).length;
|
|
104
104
|
},
|
|
105
105
|
},
|
|
106
106
|
mounted() {
|
|
@@ -85,7 +85,7 @@ export default defineComponent({
|
|
|
85
85
|
return this.notEmptyPlaylist ? this.$t('Podcasts in the playlist') : this.$t('No podcasts in the playlist');
|
|
86
86
|
},
|
|
87
87
|
notEmptyPlaylist(): boolean {
|
|
88
|
-
return 0 !== Object.keys(this.playlist.
|
|
88
|
+
return 0 !== Object.keys(this.playlist.samplingViews??[]).length;
|
|
89
89
|
},
|
|
90
90
|
podcastsDisplay(): Array<Podcast>{
|
|
91
91
|
if(this.isMobile){
|
|
@@ -122,11 +122,7 @@ export default defineComponent({
|
|
|
122
122
|
this.podcasts.length = 0;
|
|
123
123
|
this.loading = true;
|
|
124
124
|
try {
|
|
125
|
-
|
|
126
|
-
for (let index = 0, len = content.length; index < len; index++) {
|
|
127
|
-
content[index].order = this.playlist.podcasts[content[index].podcastId];
|
|
128
|
-
}
|
|
129
|
-
this.podcasts = content;
|
|
125
|
+
this.podcasts = await octopusApi.fetchData<Array<Podcast>>(0, 'playlist/'+this.playlist.playlistId+'/content');
|
|
130
126
|
if (!this.editRight) {
|
|
131
127
|
this.podcasts = this.podcasts.filter((p: Podcast|null) => {
|
|
132
128
|
return (
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
:pub-date="podcast.pubDate"
|
|
39
39
|
:podcast-organisation-id="podcast.organisation.id"
|
|
40
40
|
:podcast-organisation-name="podcast.organisation.name"
|
|
41
|
-
:podcast-order="podcast.order"
|
|
42
41
|
:duration="podcast.duration"
|
|
43
42
|
:animators="podcast.animators"
|
|
44
43
|
@mouseenter="showDescription"
|
|
@@ -45,10 +45,6 @@
|
|
|
45
45
|
>
|
|
46
46
|
<div>{{ '© ' + podcastOrganisationName }}</div>
|
|
47
47
|
</router-link>
|
|
48
|
-
<span
|
|
49
|
-
v-if="editRight && podcastOrder && podcastOrder > 1"
|
|
50
|
-
class="saooti-pin text-danger pe-2"
|
|
51
|
-
/>
|
|
52
48
|
</div>
|
|
53
49
|
</div>
|
|
54
50
|
</template>
|
|
@@ -79,7 +75,6 @@ export default defineComponent({
|
|
|
79
75
|
pubDate: { default: "", type: String},
|
|
80
76
|
podcastOrganisationId: { default: "", type: String},
|
|
81
77
|
podcastOrganisationName: { default: "", type: String},
|
|
82
|
-
podcastOrder: { default: undefined, type: Number},
|
|
83
78
|
duration: { default: 0, type: Number},
|
|
84
79
|
animators: { default: undefined, type: Object as ()=> Array<Participant>},
|
|
85
80
|
},
|