fix: search input on extension page (#3705)

This commit is contained in:
Tiago Vasconcelos
2026-01-12 12:39:48 +02:00
committed by GitHub
parent a185197e34
commit 5490367179
3 changed files with 31 additions and 2 deletions
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -26,7 +26,8 @@ window.PageExtensions = {
selectedRelease: null, selectedRelease: null,
uninstallAndDropDb: false, uninstallAndDropDb: false,
maxStars: 5, maxStars: 5,
paylinkWebsocket: null paylinkWebsocket: null,
searchToggle: false
} }
}, },
watch: { watch: {
+28
View File
@@ -15,6 +15,7 @@
<q-space></q-space> <q-space></q-space>
<q-input <q-input
v-if="$q.screen.gt.sm"
:label="$t('search_extensions')" :label="$t('search_extensions')"
:dense="dense" :dense="dense"
class="float-right q-pr-xl" class="float-right q-pr-xl"
@@ -33,6 +34,14 @@
</q-icon> </q-icon>
</template> </template>
</q-input> </q-input>
<q-btn
v-else
flat
icon="search"
@click="searchToggle = !searchToggle"
class="q-mr-md"
>
</q-btn>
<q-badge <q-badge
v-if="g.user.admin && updatableExtensions?.length" v-if="g.user.admin && updatableExtensions?.length"
@click="showUpdateAllDialog = true" @click="showUpdateAllDialog = true"
@@ -68,6 +77,25 @@
><q-tooltip v-text="$t('admin_settings')"></q-tooltip ><q-tooltip v-text="$t('admin_settings')"></q-tooltip
></q-btn> ></q-btn>
</q-tabs> </q-tabs>
<div v-if="$q.screen.lt.sm && searchToggle" class="q-pa-sm">
<q-input
:label="$t('search_extensions')"
dense
class=""
v-model="searchTerm"
autofocus
>
<template v-slot:append>
<q-icon
v-if="searchTerm !== ''"
name="close"
@click="searchTerm = ''"
class="cursor-pointer"
>
</q-icon>
</template>
</q-input>
</div>
</div> </div>
</div> </div>
</q-card> </q-card>