Improved search, linking results to scenes page, updating on input clear.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
type="search"
|
||||
placeholder="Search actors"
|
||||
class="input search"
|
||||
@keydown.enter="search"
|
||||
@search="search"
|
||||
>
|
||||
|
||||
<Icon
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
type="search"
|
||||
placeholder="Search scenes"
|
||||
class="search input"
|
||||
@keydown.enter="search"
|
||||
@search="search"
|
||||
>
|
||||
|
||||
<Icon
|
||||
|
||||
@@ -66,9 +66,10 @@ function toggleTag(tag, isChecked) {
|
||||
|
||||
<style scoped>
|
||||
.dialog-body {
|
||||
padding: 1rem;
|
||||
width: 30rem;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 1rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
Found {{ sceneTotal }} {{ sceneTotal > 1 ? 'scenes' : 'scene' }}
|
||||
|
||||
<a
|
||||
:href="`/updates/results/?q=${query}`"
|
||||
:href="`/scenes/results/?q=${query}`"
|
||||
class="link"
|
||||
>Full scene results</a>
|
||||
</span>
|
||||
|
||||
@@ -49,7 +49,8 @@ export async function fetchEntities(options = {}) {
|
||||
.where((subBuilder) => {
|
||||
subBuilder
|
||||
.whereILike('entities.name', `%${options.query}%`)
|
||||
.orWhereILike('entities.slug', `%${options.query}%`);
|
||||
.orWhereILike('entities.slug', `%${options.query}%`)
|
||||
.orWhereILike(knex.raw('array_to_string(entities.alias, \',\', \'*\')'), `%${options.query}%`);
|
||||
})
|
||||
.whereNot('entities.type', 'info');
|
||||
});
|
||||
|
||||
2
static
2
static
Submodule static updated: 9b190cb9c7...c3a287bfae
Reference in New Issue
Block a user