Browse Source

refactor(gui): Placeholder correction

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
pull/341/head
Pranav C 4 years ago
parent
commit
6675435d75
  1. 8
      packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listItems.vue

8
packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listItems.vue

@ -11,13 +11,13 @@
hide-details hide-details
dense dense
outlined outlined
placeholder="Search records" placeholder="Filter query"
v-model="query" v-model="query"
class=" caption search-field ml-2" class=" caption search-field ml-2"
@keydown.enter="loadData" @keydown.enter="loadData"
> >
<template #append> <template #append>
<x-icon tooltip="Change page" small icon.class="mt-1" @click="loadData">mdi-keyboard-return <x-icon tooltip="Apply filter" small icon.class="mt-1" @click="loadData">mdi-keyboard-return
</x-icon> </x-icon>
</template> </template>
</v-text-field> </v-text-field>
@ -84,7 +84,7 @@ export default {
components: {Pagination}, components: {Pagination},
props: { props: {
value: Boolean, value: Boolean,
hm: [Object, Function], hm: [Object, Function, Boolean],
title: { title: {
type: String, type: String,
default: 'Link Record' default: 'Link Record'
@ -117,7 +117,7 @@ export default {
if (!this.api) return; if (!this.api) return;
let where = this.queryParams.where || ''; let where = this.queryParams.where || '';
if (this.query){ if (this.query) {
where += (where ? '~and' : '') + `(${this.primaryCol},like,%${this.query}%)`; where += (where ? '~and' : '') + `(${this.primaryCol},like,%${this.query}%)`;
} }

Loading…
Cancel
Save