@saooti/octopus-sdk 31.0.22 → 31.0.23
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 +1 -0
- package/package.json +1 -1
- package/src/components/display/sharing/QrCode.vue +24 -4
- package/src/locale/de.ts +1 -0
- package/src/locale/en.ts +1 -0
- package/src/locale/es.ts +1 -0
- package/src/locale/fr.ts +1 -0
- package/src/locale/it.ts +1 -0
- package/src/locale/sl.ts +1 -0
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
class="myQrCode"
|
|
9
9
|
:margin="2"
|
|
10
10
|
/>
|
|
11
|
+
<ClassicCheckbox
|
|
12
|
+
v-if="'#000000'!==otherColor"
|
|
13
|
+
v-model:textInit="isNotBlack"
|
|
14
|
+
class="flex-shrink-0"
|
|
15
|
+
id-checkbox="is-black-qr-code"
|
|
16
|
+
:label="$t('Use organization color')"
|
|
17
|
+
/>
|
|
11
18
|
<button
|
|
12
19
|
class="btn m-3"
|
|
13
20
|
@click="download"
|
|
@@ -22,6 +29,7 @@
|
|
|
22
29
|
</template>
|
|
23
30
|
|
|
24
31
|
<script lang="ts">
|
|
32
|
+
import ClassicCheckbox from '../../form/ClassicCheckbox.vue';
|
|
25
33
|
import { state } from '../../../store/paramStore';
|
|
26
34
|
import octopusApi from '@saooti/octopus-api';
|
|
27
35
|
import Snackbar from '../../misc/Snackbar.vue';
|
|
@@ -33,7 +41,8 @@ export default defineComponent({
|
|
|
33
41
|
|
|
34
42
|
components: {
|
|
35
43
|
Snackbar,
|
|
36
|
-
QrcodeVue
|
|
44
|
+
QrcodeVue,
|
|
45
|
+
ClassicCheckbox
|
|
37
46
|
},
|
|
38
47
|
props: {
|
|
39
48
|
url: { default: '', type: String},
|
|
@@ -42,7 +51,9 @@ export default defineComponent({
|
|
|
42
51
|
data() {
|
|
43
52
|
return {
|
|
44
53
|
size: 200 as number,
|
|
45
|
-
color: "#
|
|
54
|
+
color: "#000000" as string,
|
|
55
|
+
otherColor:"#000000" as string,
|
|
56
|
+
isNotBlack: false as boolean,
|
|
46
57
|
};
|
|
47
58
|
},
|
|
48
59
|
computed:{
|
|
@@ -50,6 +61,15 @@ export default defineComponent({
|
|
|
50
61
|
return (state.generalParameters.authenticated as boolean);
|
|
51
62
|
},
|
|
52
63
|
},
|
|
64
|
+
watch:{
|
|
65
|
+
isNotBlack(){
|
|
66
|
+
if(this.isNotBlack){
|
|
67
|
+
this.color = this.otherColor;
|
|
68
|
+
}else{
|
|
69
|
+
this.color = "#000000";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
53
73
|
created(){
|
|
54
74
|
this.initColor();
|
|
55
75
|
},
|
|
@@ -66,7 +86,7 @@ export default defineComponent({
|
|
|
66
86
|
},
|
|
67
87
|
async initColor(): Promise<void> {
|
|
68
88
|
if(state.generalParameters.podcastmaker && state.generalParameters.podcastmakerColor){
|
|
69
|
-
this.
|
|
89
|
+
this.otherColor = state.generalParameters.podcastmakerColor;
|
|
70
90
|
return;
|
|
71
91
|
}
|
|
72
92
|
if (!this.authenticated) return;
|
|
@@ -79,7 +99,7 @@ export default defineComponent({
|
|
|
79
99
|
);
|
|
80
100
|
}
|
|
81
101
|
if (Object.prototype.hasOwnProperty.call(data,'COLOR')) {
|
|
82
|
-
this.
|
|
102
|
+
this.otherColor = data.COLOR;
|
|
83
103
|
}
|
|
84
104
|
},
|
|
85
105
|
}
|
package/src/locale/de.ts
CHANGED
package/src/locale/en.ts
CHANGED
package/src/locale/es.ts
CHANGED
package/src/locale/fr.ts
CHANGED
package/src/locale/it.ts
CHANGED