@saooti/octopus-sdk 32.0.38 → 33.0.0
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
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
v-model="textValue"
|
|
11
11
|
:disabled="isDisabled"
|
|
12
12
|
class="c-hand"
|
|
13
|
+
:style="getFontFamily"
|
|
13
14
|
>
|
|
14
15
|
<option
|
|
15
16
|
v-for="option in options"
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
</template>
|
|
25
26
|
<script lang="ts">
|
|
26
27
|
import { defineComponent } from 'vue';
|
|
28
|
+
import { displayMethods } from '../mixins/functions';
|
|
27
29
|
export default defineComponent({
|
|
28
30
|
name: 'ClassicSelect',
|
|
29
31
|
props: {
|
|
@@ -40,6 +42,17 @@ export default defineComponent({
|
|
|
40
42
|
textValue: undefined as string|undefined,
|
|
41
43
|
};
|
|
42
44
|
},
|
|
45
|
+
computed:{
|
|
46
|
+
getFontFamily(): string{
|
|
47
|
+
const item = this.options.find((x) => {
|
|
48
|
+
return this.textValue === x.value;
|
|
49
|
+
});
|
|
50
|
+
if(item && item.fontFamily){
|
|
51
|
+
return 'font-family:'+item.fontFamily;
|
|
52
|
+
}
|
|
53
|
+
return "";
|
|
54
|
+
}
|
|
55
|
+
},
|
|
43
56
|
watch: {
|
|
44
57
|
textValue(){
|
|
45
58
|
if(this.textInit !== this.textValue){
|
|
@@ -54,7 +67,7 @@ export default defineComponent({
|
|
|
54
67
|
}
|
|
55
68
|
},
|
|
56
69
|
},
|
|
57
|
-
}
|
|
70
|
+
},
|
|
58
71
|
});
|
|
59
72
|
</script>
|
|
60
73
|
<style lang="scss">
|
package/src/store/paramStore.ts
CHANGED
|
@@ -9,7 +9,7 @@ const state:paramStore = {
|
|
|
9
9
|
isRoleLive: true,
|
|
10
10
|
isCommments: true,
|
|
11
11
|
isOrganisation: true,
|
|
12
|
-
isPlaylist:
|
|
12
|
+
isPlaylist: true,
|
|
13
13
|
isProduction: true,
|
|
14
14
|
isContribution: true,
|
|
15
15
|
ApiUri: 'https://api.dev2.saooti.org/',
|
|
@@ -209,6 +209,9 @@ const definedProps = (obj: GeneralParameters|PodcastPage|PodcastsPage|EmissionsP
|
|
|
209
209
|
const initialize = function initialize(initObject: paramStore): Promise<void> {
|
|
210
210
|
return new Promise<void>((resolve, reject) => {
|
|
211
211
|
state.generalParameters = Object.assign(state.generalParameters, definedProps(initObject.generalParameters));
|
|
212
|
+
if(!state.generalParameters.authenticated){
|
|
213
|
+
state.generalParameters.organisationId = undefined;
|
|
214
|
+
}
|
|
212
215
|
state.podcastPage = Object.assign(state.podcastPage, definedProps(initObject.podcastPage));
|
|
213
216
|
state.podcastsPage = Object.assign(state.podcastsPage, definedProps(initObject.podcastsPage));
|
|
214
217
|
state.emissionsPage = Object.assign(state.emissionsPage, definedProps(initObject.emissionsPage));
|