fix: normalize select file labels (#8021)

This commit is contained in:
mehmet turac
2026-05-18 02:37:54 +03:00
committed by GitHub
parent da779883a6
commit b79349b052
7 changed files with 7 additions and 7 deletions

View File

@@ -96,7 +96,7 @@ const ConnectSpecForm = ({ sourceUrl, setSourceUrl, isLoading, error, setError,
className="url-input file-pick-btn"
onClick={() => fileInputRef.current?.click()}
>
{sourceUrl ? sourceUrl.split(/[\\/]/).pop() : 'Choose file...'}
{sourceUrl ? sourceUrl.split(/[\\/]/).pop() : 'Select File'}
</button>
</>
)}

View File

@@ -101,7 +101,7 @@ const ConnectionSettingsModal = ({ collection, sourceUrl, onSave, onDisconnect,
className="settings-input file-pick-btn"
onClick={() => fileInputRef.current?.click()}
>
{filePath ? filePath.split(/[\\/]/).pop() : 'Choose file...'}
{filePath ? filePath.split(/[\\/]/).pop() : 'Select File'}
</button>
</>
)}

View File

@@ -233,7 +233,7 @@ const General = () => {
disabled={formik.values.customCaCertificate.enabled ? false : true}
onClick={() => inputFileCaCertificateRef.current.click()}
>
select file
Select File
<input
id="caCertFilePath"
type="file"

View File

@@ -439,7 +439,7 @@ const ProxySettings = ({ close }) => {
>
{formik.values.pac.source
? decodeURIComponent(formik.values.pac.source.split('/').pop())
: 'Choose file...'}
: 'Select File'}
</button>
)}
{formik.touched.pac?.source && formik.errors.pac?.source ? (

View File

@@ -256,7 +256,7 @@ const OAuth1 = ({ item = {}, collection, request, save, updateAuth }) => {
<button
className="flex items-center gap-1 oauth1-icon cursor-pointer text-link"
onClick={handleBrowse}
title="Select file"
title="Select File"
type="button"
>
<IconUpload size={14} />

View File

@@ -192,7 +192,7 @@ const MultipartFormParams = ({ item, collection }) => {
<button
className="upload-btn ml-1"
onClick={() => handleBrowseFiles(row, onChange)}
title="Select file"
title="Select File"
>
<IconUpload size={16} />
</button>

View File

@@ -227,7 +227,7 @@ const ResponseExampleMultipartFormParams = ({ item, collection, exampleUid, edit
<button
className="upload-btn ml-1"
onClick={() => handleBrowseFiles(row, onChange)}
title="Select file"
title="Select File"
>
<IconUpload size={16} />
</button>