From 838f34d0d04530ec141712638e9653a0bdf5ec25 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 1 Feb 2021 16:21:58 -0800 Subject: [PATCH] Allow saving when toggling enabled --- web/pages/components/config/edit-storage.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/pages/components/config/edit-storage.tsx b/web/pages/components/config/edit-storage.tsx index 3cc2914d4..2eb426ca4 100644 --- a/web/pages/components/config/edit-storage.tsx +++ b/web/pages/components/config/edit-storage.tsx @@ -27,6 +27,9 @@ const { Panel } = Collapse; function checkSaveable(formValues: any, currentValues: any) { const { endpoint, accessKey, secret, bucket, region, enabled, servingEndpoint, acl } = formValues; // if fields are filled out and different from what's in store, then return true + if (!enabled || enabled !== currentValues.enabled) { + return true; + } if (enabled) { if (!!endpoint && isValidUrl(endpoint) && !!accessKey && !!secret && !!bucket && !!region) { if (