Commit a0b2a73 1 parent e023d17 commit a0b2a73 Copy full SHA for a0b2a73
File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
<span class =" icon i-ri-camera-line w-full h-full opacity-50 inline-block" />
6
6
</span >
7
7
<svws-ui-button v-if =" src && (src.split(',').length > 1)" type =" icon" @click =" deleteImage" tabindex =" 0" title =" Bild löschen" >
8
- <span class =" icon i-ri-delete-bin-line inline-block" />
8
+ <span class =" icon i-ri-delete-bin-line inline-block" :class = " {'icon-ui-caution': stage} " />
9
9
</svws-ui-button >
10
10
<svws-ui-button v-if =" upload && (uploadedImage === null) && (src.split(',').length < 2)" type =" icon" @click =" toggleUpload" tabindex =" 0" title =" Bild hochladen" >
11
11
<input class =" hidden" ref =" fileInputEl" type =" file" accept =" image/*" @change =" onFileChanged" >
76
76
77
77
const hasVideoDevice = ref (false );
78
78
79
+ const stage = ref <boolean >(false );
80
+
79
81
onMounted (async () => {
80
82
// test if media device available
81
83
const list = await navigator .mediaDevices .enumerateDevices ();
89
91
const file = ref <File | null >(null );
90
92
91
93
function deleteImage() {
94
+ stage .value = ! stage .value ;
95
+ if (stage .value )
96
+ return ;
92
97
emit (' image:base64' , null );
93
98
emit (' image:captured' , null );
94
99
}
You can’t perform that action at this time.
0 commit comments