@saooti/octopus-sdk 31.0.14 → 31.0.17

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
@@ -572,6 +572,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
572
572
  * 30.0.73 Ajout classe css
573
573
  * 30.0.74 Error locales en allemand (je sens que ça va être fun cette histoire)
574
574
  * 30.0.75 Parlement
575
+ * 30.0.76 Space
575
576
 
576
577
 
577
578
  * 31.0.0 Passage en 31
@@ -589,3 +590,6 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
589
590
  * 31.0.12 Commentaires Events
590
591
  * 31.0.13 Update/delete Libraries
591
592
  * 31.0.14 Lazy loading lang
593
+ * 31.0.15 Error select productor filter
594
+ * 31.0.16 Merge 30
595
+ * 31.0.17 Bug divers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "31.0.14",
3
+ "version": "31.0.17",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -75,4 +75,7 @@
75
75
  .classic-select select {
76
76
  width: 100%;
77
77
  }
78
+ .vc-select select{
79
+ padding: 0 20px 0 8px !important;
80
+ }
78
81
  }
@@ -19,4 +19,5 @@ $breadcrumb-border-radius: 2rem !default;
19
19
  @import './multiselect.scss';
20
20
  @import './transition.scss';
21
21
  @import './modal.scss';
22
- @import './share.scss';
22
+ @import './share.scss';
23
+ @import 'v-calendar/dist/style.css';
@@ -119,7 +119,7 @@ export default defineComponent({
119
119
  this.keepOrganisation = false;
120
120
  if (organisation && organisation.id) {
121
121
  this.$emit('updateOrganisationId', organisation.id);
122
- if(organisation.privacy){
122
+ if("PUBLIC"!==organisation.privacy){
123
123
  this.$nextTick(() => {
124
124
  this.onKeepOrganisation();
125
125
  });
@@ -222,13 +222,21 @@ export default defineComponent({
222
222
  }
223
223
  event.preventDefault();
224
224
  const rubriqueChosenId = this.rubriqueId[this.rubriqueId.length - 1];
225
- const rubriqueChosen = this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriques.find((element: Rubrique) => element.rubriqueId === rubriqueChosenId);
226
- const filterToAdd = {
227
- rubriquageId: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriquageId,
225
+ let filterToAdd: RubriquageFilter = {
226
+ rubriquageId: 0,
228
227
  rubriqueId: rubriqueChosenId,
229
- nameRubriquage: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].title,
230
- nameRubrique: rubriqueChosen.name
228
+ nameRubriquage: '',
229
+ nameRubrique: ''
231
230
  };
231
+ if(this.$store.state.filter.rubriquageArray.length){
232
+ const rubriqueChosen = this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriques.find((element: Rubrique) => element.rubriqueId === rubriqueChosenId);
233
+ filterToAdd = {
234
+ rubriquageId: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriquageId,
235
+ rubriqueId: rubriqueChosenId,
236
+ nameRubriquage: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].title,
237
+ nameRubrique: rubriqueChosen.name
238
+ };
239
+ }
232
240
  const newFilter: Array<RubriquageFilter> = Array.from(this.$store.state.filter.rubriqueFilter);
233
241
  newFilter.push(filterToAdd);
234
242
  this.$store.commit('filterRubrique', newFilter);
@@ -162,7 +162,6 @@
162
162
  />
163
163
  </a>
164
164
  <a
165
- v-if="podcast ||emission"
166
165
  rel="noopener"
167
166
  target="_blank"
168
167
  :class="[
@@ -226,8 +225,7 @@
226
225
  <QrCodeModal
227
226
  v-if="qrCode"
228
227
  :closable="true"
229
- :podcast="podcast"
230
- :emission="emission"
228
+ :url-page="urlPage"
231
229
  @close="qrCode = false"
232
230
  />
233
231
  <Snackbar
@@ -34,8 +34,6 @@
34
34
  </template>
35
35
 
36
36
  <script lang="ts">
37
- import { Podcast } from '@/store/class/general/podcast';
38
- import { Emission } from '@/store/class/general/emission';
39
37
  import QrCode from '../../display/sharing/QrCode.vue';
40
38
  import { defineComponent } from 'vue'
41
39
  export default defineComponent({
@@ -46,8 +44,7 @@ export default defineComponent({
46
44
  },
47
45
 
48
46
  props: {
49
- podcast: { default: undefined, type: Object as ()=> Podcast},
50
- emission: { default: undefined, type: Object as ()=> Emission},
47
+ urlPage: { default: undefined, type: String},
51
48
  },
52
49
 
53
50
  emits: ['close'],
@@ -56,27 +53,7 @@ export default defineComponent({
56
53
  return {
57
54
  };
58
55
  },
59
-
60
- computed: {
61
- urlPage(): string{
62
- if(window.location.href.includes('?productor')){
63
- return window.location.href;
64
- }
65
- if("" !== window.location.search){
66
- return window.location.href + "&productor=" + this.productor;
67
- }
68
- return window.location.href + "?productor=" + this.productor;
69
- },
70
- productor(): string{
71
- if(this.podcast){
72
- return this.podcast.organisation.id;
73
- }
74
- if(this.emission){
75
- return this.emission.orga.id;
76
- }
77
- return "";
78
- },
79
- },
56
+
80
57
  methods:{
81
58
  closePopup(event: { preventDefault: () => void }): void {
82
59
  event.preventDefault();