@christianriedl/media 1.0.45 → 1.0.46
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
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
const cycle = ref(false);
|
|
26
26
|
const interval = ref(8000);
|
|
27
27
|
const hasCoordinates = ref(false);
|
|
28
|
+
let origUrl = "";
|
|
28
29
|
let gpsLng: number[];
|
|
29
30
|
let gpsLat: number[];
|
|
30
31
|
|
|
@@ -181,6 +182,7 @@
|
|
|
181
182
|
return `${item.Width}/${item.Height}`;
|
|
182
183
|
}
|
|
183
184
|
function setMetaData(exif: Dictionary<any>, file: IPictureFile) {
|
|
185
|
+
origUrl = mediaService.getPhotoUrl(url.value, file.Url, '0x0x0');
|
|
184
186
|
metadata['Name'] = file.Name;
|
|
185
187
|
if (exif) {
|
|
186
188
|
if (exif.Model)
|
|
@@ -266,6 +268,10 @@
|
|
|
266
268
|
else
|
|
267
269
|
delete metadata['Personen'];
|
|
268
270
|
}
|
|
271
|
+
function onDownload() {
|
|
272
|
+
window.open(origUrl);
|
|
273
|
+
infoDialog.value = false;
|
|
274
|
+
}
|
|
269
275
|
</script>
|
|
270
276
|
|
|
271
277
|
<template>
|
|
@@ -295,6 +301,9 @@
|
|
|
295
301
|
<v-btn v-if="hasCoordinates" @click="showMap">
|
|
296
302
|
<v-icon large icon="$gps" />
|
|
297
303
|
</v-btn>
|
|
304
|
+
<v-btn @click="onDownload">
|
|
305
|
+
<v-icon large icon="$download" />
|
|
306
|
+
</v-btn>
|
|
298
307
|
</v-card-actions>
|
|
299
308
|
</v-card>
|
|
300
309
|
</v-dialog>
|