From f13ae673087d51ddec1900f81152debbc69b2973 Mon Sep 17 00:00:00 2001 From: Maayan Hadasi Date: Mon, 17 Jun 2024 10:07:56 +0300 Subject: [PATCH] Enable mvn spinner if isRWXSupported Signed-off-by: Maayan Hadasi --- client/src/app/pages/repositories/Mvn.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/pages/repositories/Mvn.tsx b/client/src/app/pages/repositories/Mvn.tsx index 6d62e49ee5..5bdd2ea856 100644 --- a/client/src/app/pages/repositories/Mvn.tsx +++ b/client/src/app/pages/repositories/Mvn.tsx @@ -30,7 +30,7 @@ export const RepositoriesMvn: React.FC = () => { const { t } = useTranslation(); const [isConfirmDialogOpen, setIsConfirmDialogOpen] = - React.useState(false); + React.useState(false); const mvnInsecureSetting = useSetting("mvn.insecure.enabled"); const mvnInsecureSettingMutation = useSettingMutation("mvn.insecure.enabled"); @@ -101,7 +101,7 @@ export const RepositoriesMvn: React.FC = () => { isAriaDisabled={!isRWXSupported || isFetching || isDeleting} onClick={() => setIsConfirmDialogOpen(true)} > - {isFetching ? ( + {isRWXSupported && isFetching ? ( Loading...