mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
fix: normalize select file labels (#8021)
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -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>
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 ? (
|
||||
|
||||
@@ -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} />
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user