diff --git a/ui/src/preferences/StoragePrefs.tsx b/ui/src/preferences/StoragePrefs.tsx index 15ab7c8..b7d540e 100644 --- a/ui/src/preferences/StoragePrefs.tsx +++ b/ui/src/preferences/StoragePrefs.tsx @@ -17,6 +17,7 @@ interface CredentialsSubmit { endpoint: string; accessId: string; accessSecret: string; + region: string; bucket: string; } @@ -38,6 +39,11 @@ export const StoragePrefs = () => { api.poke(setAccessKeyId(data.accessId)); api.poke(setSecretAccessKey(data.accessSecret)); api.poke(setCurrentBucket(data.bucket)); + api.poke({ + app: 's3-store', + mark: 's3-action', + json: { 'set-region': data.region }, + }); }, []) ); @@ -113,6 +119,20 @@ export const StoragePrefs = () => { className="input default-ring bg-gray-50" /> +
+ + +