This commit is contained in:
2021-10-06 18:20:04 +00:00
parent 5e7ab769c0
commit 3c81e54710
2 changed files with 16 additions and 4 deletions

View File

@@ -10,8 +10,10 @@
:items="sourcetags" :items="sourcetags"
:loading="tagSearchUnderway" :loading="tagSearchUnderway"
:placeholder="placeHolderText" :placeholder="placeHolderText"
:prepend-inner-icon="prependInnerIcon"
:no-data-text="$ay.t('NoData')" :no-data-text="$ay.t('NoData')"
:search-input.sync="tagSearchEntry" :search-input.sync="tagSearchEntry"
:clearable="clearable"
hide-selected hide-selected
multiple multiple
chips chips
@@ -66,9 +68,16 @@ export default {
errorMessages: { type: Array, default: null }, errorMessages: { type: Array, default: null },
selectOnly: { type: Boolean, default: false }, selectOnly: { type: Boolean, default: false },
noLabel: { type: Boolean, default: false }, noLabel: { type: Boolean, default: false },
clearable: { type: Boolean, default: false },
placeHolder: { placeHolder: {
type: String, type: String,
default: null default: null
},
prependInnerIcon: {
type: String,
default() {
return null;
}
} }
}, },
watch: { watch: {

View File

@@ -30,7 +30,9 @@
<template v-if="!$vuetify.breakpoint.xs"> <template v-if="!$vuetify.breakpoint.xs">
<gz-tag-picker <gz-tag-picker
class="mr-3" class="mr-3"
place-holder="ph filter users" :place-holder="$ay.t('FilterUsers')"
prepend-inner-icon="$ayiFilter"
clearable
no-label no-label
select-only select-only
v-model="tags" v-model="tags"
@@ -290,9 +292,9 @@
<template v-if="$vuetify.breakpoint.xs"> <template v-if="$vuetify.breakpoint.xs">
<v-col cols="12"> <v-col cols="12">
<gz-tag-picker <gz-tag-picker
place-holder="ph filter users" :label="$ay.t('FilterUsers')"
label="mylabel" prepend-inner-icon="$ayiFilter"
hint="BLAH" clearable
select-only select-only
v-model="tags" v-model="tags"
@input="refresh" @input="refresh"
@@ -1099,6 +1101,7 @@ async function fetchTranslatedText() {
"ScheduleWOColorFrom", "ScheduleWOColorFrom",
"ScheduleOptions", "ScheduleOptions",
"ScheduleShowTypes", "ScheduleShowTypes",
"FilterUsers",
"NoColor", "NoColor",
"WorkOrder", "WorkOrder",
"WorkOrderList", "WorkOrderList",