refactor: autofocus can be disabled in smart input hopp ui component (#3273)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Joel Jacob Stephen
2023-08-22 20:10:41 +05:30
committed by GitHub
parent 3c3fb1e4a9
commit ac60843183
6 changed files with 34 additions and 20 deletions

View File

@@ -19,11 +19,12 @@
>
<WorkspaceCurrent :section="t('tab.collections')" />
<input
<HoppSmartInput
v-model="filterTexts"
:placeholder="t('action.search')"
class="py-2 pl-4 pr-2 bg-transparent !border-0"
input-styles="py-2 pl-4 pr-2 bg-transparent !border-0"
type="search"
:autofocus="false"
:disabled="collectionsType.type === 'team-collections'"
/>
</div>

View File

@@ -21,17 +21,13 @@
<div class="flex items-center py-4 space-x-2">
<HoppSmartInput
v-model="PROXY_URL"
:autofocus="false"
styles="flex-1"
placeholder=" "
:label="t('settings.proxy_url')"
input-styles="input floating-input"
:disabled="!proxyEnabled"
>
<template #label>
<label for="url">
{{ t("settings.proxy_url") }}
</label>
</template>
</HoppSmartInput>
/>
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
:title="t('settings.reset_default')"