From c0c57849547927ec1cea73e9db67330e6c202d5d Mon Sep 17 00:00:00 2001 From: gabek Date: Fri, 29 Oct 2021 00:34:07 +0000 Subject: [PATCH] Prettified Code! --- web/components/config/edit-storage.tsx | 12 +++++++++++- web/utils/config-constants.tsx | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/web/components/config/edit-storage.tsx b/web/components/config/edit-storage.tsx index aa4cee154..7ff1d0bfb 100644 --- a/web/components/config/edit-storage.tsx +++ b/web/components/config/edit-storage.tsx @@ -28,7 +28,17 @@ const { Panel } = Collapse; // we could probably add more detailed checks here // `currentValues` is what's currently in the global store and in the db 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 (enabled) { if (!!endpoint && isValidUrl(endpoint) && !!accessKey && !!secret && !!bucket && !!region) { diff --git a/web/utils/config-constants.tsx b/web/utils/config-constants.tsx index ed471c841..3d3487459 100644 --- a/web/utils/config-constants.tsx +++ b/web/utils/config-constants.tsx @@ -360,6 +360,6 @@ export const S3_TEXT_FIELDS_INFO = { forcePathStyle: { fieldName: 'forcePathStyle', 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)", }, };