From e58e434fbd162f83461ac3a9ca67bf7b03171fe1 Mon Sep 17 00:00:00 2001 From: Greg Colker Date: Fri, 12 May 2023 10:41:54 -0400 Subject: [PATCH] Change Endpoint field from 'text' to 'url' For browsers that support it, this input will validate for basic URL scheme (scheme://etc) and on devices like iPhones may enable the url keyboard. --- ui/src/preferences/StoragePrefs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/preferences/StoragePrefs.tsx b/ui/src/preferences/StoragePrefs.tsx index 629dac3..fa7a132 100644 --- a/ui/src/preferences/StoragePrefs.tsx +++ b/ui/src/preferences/StoragePrefs.tsx @@ -92,7 +92,7 @@ export const StoragePrefs = () => { disabled={!loaded} required id="endpoint" - type="text" + type="url" defaultValue={s3.credentials?.endpoint} {...register('endpoint', { required: true })} className="input default-ring bg-gray-50"