Prettified Code!
This commit is contained in:
@@ -28,7 +28,17 @@ const { Panel } = Collapse;
|
|||||||
// we could probably add more detailed checks here
|
// we could probably add more detailed checks here
|
||||||
// `currentValues` is what's currently in the global store and in the db
|
// `currentValues` is what's currently in the global store and in the db
|
||||||
function checkSaveable(formValues: any, currentValues: any) {
|
function checkSaveable(formValues: any, currentValues: any) {
|
||||||
const { endpoint, accessKey, secret, bucket, region, enabled, servingEndpoint, acl, forcePathStyle } = formValues;
|
const {
|
||||||
|
endpoint,
|
||||||
|
accessKey,
|
||||||
|
secret,
|
||||||
|
bucket,
|
||||||
|
region,
|
||||||
|
enabled,
|
||||||
|
servingEndpoint,
|
||||||
|
acl,
|
||||||
|
forcePathStyle,
|
||||||
|
} = formValues;
|
||||||
// if fields are filled out and different from what's in store, then return true
|
// if fields are filled out and different from what's in store, then return true
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
if (!!endpoint && isValidUrl(endpoint) && !!accessKey && !!secret && !!bucket && !!region) {
|
if (!!endpoint && isValidUrl(endpoint) && !!accessKey && !!secret && !!bucket && !!region) {
|
||||||
|
|||||||
@@ -360,6 +360,6 @@ export const S3_TEXT_FIELDS_INFO = {
|
|||||||
forcePathStyle: {
|
forcePathStyle: {
|
||||||
fieldName: 'forcePathStyle',
|
fieldName: 'forcePathStyle',
|
||||||
label: 'Force path-style',
|
label: 'Force path-style',
|
||||||
tip: 'If your S3 provider doesn\'t support virtual-hosted-style URLs set this to ON (i.e. Oracle Cloud Object Storage)',
|
tip: "If your S3 provider doesn't support virtual-hosted-style URLs set this to ON (i.e. Oracle Cloud Object Storage)",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user