@saooti/octopus-sdk 0.28.14 → 0.28.15
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
package/package.json
CHANGED
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
></swatches>
|
|
95
95
|
</div>
|
|
96
96
|
<swatches
|
|
97
|
-
v-model="
|
|
97
|
+
v-model="themeBeta"
|
|
98
98
|
class="c-hand input-no-outline"
|
|
99
99
|
show-fallback
|
|
100
100
|
colors="text-advanced"
|
|
101
101
|
popover-to="right"
|
|
102
|
-
:data-color="
|
|
102
|
+
:data-color="themeBeta"
|
|
103
103
|
v-else
|
|
104
104
|
></swatches>
|
|
105
105
|
</div>
|
|
@@ -223,6 +223,7 @@ export default Vue.extend({
|
|
|
223
223
|
isShareModal: false as boolean,
|
|
224
224
|
color: '#40a372' as string,
|
|
225
225
|
theme: '#000000' as string,
|
|
226
|
+
themeBeta: '#000000' as string,
|
|
226
227
|
proceedReading: true as boolean,
|
|
227
228
|
episodeNumbers: 'number' as string,
|
|
228
229
|
iFrameNumber: '3' as string,
|
|
@@ -347,11 +348,12 @@ export default Vue.extend({
|
|
|
347
348
|
}
|
|
348
349
|
}
|
|
349
350
|
url.push('?distributorId=' + this.organisationId);
|
|
351
|
+
const theme = this.isBeta ? this.themeBeta : this.theme;
|
|
350
352
|
url.push(
|
|
351
353
|
'&color=' +
|
|
352
354
|
this.color.substring(1) +
|
|
353
355
|
'&theme=' +
|
|
354
|
-
|
|
356
|
+
theme.substring(1)
|
|
355
357
|
);
|
|
356
358
|
if (!this.proceedReading) {
|
|
357
359
|
url.push('&proceed=false');
|
|
@@ -473,6 +475,9 @@ export default Vue.extend({
|
|
|
473
475
|
this.theme = '#ffffff';
|
|
474
476
|
}
|
|
475
477
|
if (data.hasOwnProperty('playerBeta')) {
|
|
478
|
+
if (data.hasOwnProperty('THEMEBETA')) {
|
|
479
|
+
this.themeBeta = data.THEMEBETA;
|
|
480
|
+
}
|
|
476
481
|
this.displayBetaChoice = data.playerBeta;
|
|
477
482
|
let dataFetched = await octopusApi.fetchCustomPlayer('customPlayer/organisation/'+ this.organisationId!);
|
|
478
483
|
this.customPlayers = dataFetched.content;
|