@christianriedl/media 1.0.230 → 1.0.231
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
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
const folder = ref<IMediaFolder | null>(null);
|
|
38
38
|
const selectMode = ref<boolean>(false);
|
|
39
39
|
const showDownload = ref(false);
|
|
40
|
+
const showText = ref("SHOW");
|
|
40
41
|
|
|
41
42
|
onMounted(async () => {
|
|
42
43
|
if (mediaAppConfig.useMediaBin) {
|
|
@@ -137,6 +138,12 @@
|
|
|
137
138
|
}
|
|
138
139
|
return result;
|
|
139
140
|
}
|
|
141
|
+
async function onTitleChanged() {
|
|
142
|
+
if (isMobile)
|
|
143
|
+
return;
|
|
144
|
+
const list = await searchPictures (title.value, withPerson.value, withLocation.value, mediaService.photoSelection.rating, 100000);
|
|
145
|
+
showText.value = `SHOW ${list.length}`;
|
|
146
|
+
}
|
|
140
147
|
async function onSearch() {
|
|
141
148
|
const list = await searchPictures (title.value, withPerson.value, withLocation.value, mediaService.photoSelection.rating, isMobile ? 200 : 500);
|
|
142
149
|
photos.value.splice(0, photos.value.length, ...list);
|
|
@@ -222,7 +229,7 @@
|
|
|
222
229
|
</v-row>
|
|
223
230
|
<v-row v-else dense align="center">
|
|
224
231
|
<v-col cols="6">
|
|
225
|
-
<v-combobox label="Titel" v-model="title" :items="titles" hide-details single-line></v-combobox>
|
|
232
|
+
<v-combobox label="Titel" v-model="title" :items="titles" @update:modelValue="onTitleChanged" hide-details single-line></v-combobox>
|
|
226
233
|
</v-col>
|
|
227
234
|
<v-col cols="2">
|
|
228
235
|
<v-checkbox v-model="withLocation" hide-details density="compact" label="Loc"></v-checkbox>
|
|
@@ -232,7 +239,7 @@
|
|
|
232
239
|
</v-col>
|
|
233
240
|
<v-col cols="2">
|
|
234
241
|
<v-btn v-if="isMobile" icon="$search" variant="tonal" @click="onSearch"></v-btn>
|
|
235
|
-
<v-btn v-else prepend-icon="$search" variant="tonal" @click="onSearch">
|
|
242
|
+
<v-btn v-else prepend-icon="$search" variant="tonal" @click="onSearch">{{showText}}</v-btn>
|
|
236
243
|
</v-col>
|
|
237
244
|
</v-row>
|
|
238
245
|
<v-row v-if="mediaAppConfig.showThumbnailText" dense align="center" >
|