@saooti/octopus-sdk 32.0.33 → 32.0.34

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 CHANGED
@@ -684,3 +684,4 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
684
684
  * 32.0.31 Merge live IOS
685
685
  * 32.0.32 Error player parameters
686
686
  * 32.0.33 Pétouilles graphiques ou d'UX diverses
687
+ * 32.0.34 Modale RSS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "32.0.33",
3
+ "version": "32.0.34",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -174,17 +174,17 @@ export default defineComponent({
174
174
  if (this.emission){
175
175
  return api +'emission/' + this.emission.emissionId + '.rss';
176
176
  }
177
- if (this.organisationId){
178
- return api +'productor/' + this.organisationId + '.rss';
179
- }
180
177
  if (this.participantId){
181
178
  return api +'participant/' + this.participantId + '.rss';
182
179
  }
180
+ if (this.organisationId){
181
+ return api +'productor/' + this.organisationId + '.rss';
182
+ }
183
183
  return '';
184
184
  },
185
185
  },
186
186
  async created(){
187
- if(this.organisationId){
187
+ if(this.organisationId || this.participantId){
188
188
  this.displayRss = await octopusApi.fetchDataPublic<boolean>(0,`rss/participants/allowed/${this.organisationId}`);
189
189
  }else{
190
190
  this.displayRss = true;
@@ -28,7 +28,7 @@
28
28
  >
29
29
  </p>
30
30
  <RssSection
31
- v-if="emission"
31
+ v-if="emission && authenticated"
32
32
  :emission="emission"
33
33
  />
34
34
  </div>
@@ -54,6 +54,11 @@ export default defineComponent({
54
54
  emission: { default: undefined, type: Object as ()=> Emission},
55
55
  },
56
56
  emits: ['close', 'copy'],
57
+ computed: {
58
+ authenticated(): boolean {
59
+ return this.$store.state.authentication.isAuthenticated;
60
+ },
61
+ },
57
62
  mounted(){
58
63
  (this.$refs.focusElement as HTMLElement)?.focus();
59
64
  },