mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 03:38:06 +02:00
Add a placeholder to the SearchBox component
This commit is contained in:
parent
444b110c05
commit
699a2a1f9e
@ -5,6 +5,7 @@
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
|
placeholder: String,
|
||||||
})
|
})
|
||||||
const searchInput = ref(null)
|
const searchInput = ref(null)
|
||||||
|
|
||||||
@ -37,6 +38,7 @@
|
|||||||
tabindex="1"
|
tabindex="1"
|
||||||
:aria-label="$t('commons.search')"
|
:aria-label="$t('commons.search')"
|
||||||
:title="$t('commons.search')"
|
:title="$t('commons.search')"
|
||||||
|
:placeholder="placeholder"
|
||||||
class="input is-rounded is-search"
|
class="input is-rounded is-search"
|
||||||
:class="{ 'has-no-background': hasNoBackground }"
|
:class="{ 'has-no-background': hasNoBackground }"
|
||||||
:value="keyword"
|
:value="keyword"
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
<!-- search -->
|
<!-- search -->
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column pb-0">
|
<div class="column pb-0">
|
||||||
<SearchBox v-model:keyword="searched" :hasNoBackground="true" />
|
<SearchBox v-model:keyword="searched" :hasNoBackground="true" :placeholder="$t('admin.search_user_placeholder')" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons is-centered mb-0">
|
<div class="buttons is-centered mb-0">
|
||||||
|
@ -21,6 +21,7 @@ return [
|
|||||||
'admin_settings' => 'Admin settings',
|
'admin_settings' => 'Admin settings',
|
||||||
'create_new_user' => 'Create a user',
|
'create_new_user' => 'Create a user',
|
||||||
'new_user' => 'New user',
|
'new_user' => 'New user',
|
||||||
|
'search_user_placeholder' => 'User name, email...',
|
||||||
'user_created' => 'user successfully created',
|
'user_created' => 'user successfully created',
|
||||||
'confirm' => [
|
'confirm' => [
|
||||||
'delete_user' => 'Are you sure you want to delete this user? There is no going back.',
|
'delete_user' => 'Are you sure you want to delete this user? There is no going back.',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user