@christianriedl/media 1.0.15 → 1.0.16

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -9,7 +9,7 @@
9
9
  const name = ref("");
10
10
 
11
11
  async function onFileInput(event: any) {
12
- const files = event.target.files as string[];
12
+ const files = event.target.files as File[];
13
13
  feedBack.value = "Start Upload";
14
14
  let count = 0;
15
15
  for (let i = 0; i < files.length; i++) {
@@ -18,7 +18,7 @@
18
18
  const rc = await mediaService.upload(formData);
19
19
  if (rc)
20
20
  count++;
21
- feedBack.value = `${files[i]} : ${rc ? "OK" : "FAILED" }`;
21
+ feedBack.value = `${files[i].name} : ${rc ? " - OK" : "- FAILED" }`;
22
22
  }
23
23
  feedBack.value = `${count} von ${files.length} erfolgreich hochgeladen ! (Close : Upload Icon)`;
24
24
  }
@@ -18,7 +18,7 @@
18
18
  const selected = reactive<IPhotoSelection>(mediaService.photoSelection);
19
19
  const listHeight = ref(0);
20
20
  const listhead = ref<any>(null);
21
- const uploadVisible = ref(true);
21
+ const uploadVisible = ref(false);
22
22
 
23
23
  const roots: string[] = ['Jahr', 'Orte', 'Ereignisse', 'Personen'];
24
24
  const criterias: string[] = ['ye', 'lo', 'ev', 'pe'];
@@ -168,7 +168,7 @@
168
168
  @update:modelValue="onRootChange"
169
169
  dense solo hide-details single-line>
170
170
  </v-select>
171
- <v-btn v-if="!isMobile" @click="uploadVisible.value = !uploadVisible.value">
171
+ <v-btn v-if="!isMobile" @click="uploadVisible = !uploadVisible">
172
172
  UPLOAD
173
173
  <v-icon>{{$vuetify.icons.values.upload}}</v-icon>
174
174
  </v-btn>