Skip to content

Commit

Permalink
Enable mvn spinner if isRWXSupported
Browse files Browse the repository at this point in the history
Signed-off-by: Maayan Hadasi <[email protected]>
  • Loading branch information
mguetta1 committed Jun 17, 2024
1 parent 7717dd6 commit f13ae67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/app/pages/repositories/Mvn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const RepositoriesMvn: React.FC = () => {
const { t } = useTranslation();

const [isConfirmDialogOpen, setIsConfirmDialogOpen] =
React.useState<Boolean>(false);
React.useState<boolean>(false);

const mvnInsecureSetting = useSetting("mvn.insecure.enabled");
const mvnInsecureSettingMutation = useSettingMutation("mvn.insecure.enabled");
Expand Down Expand Up @@ -101,7 +101,7 @@ export const RepositoriesMvn: React.FC = () => {
isAriaDisabled={!isRWXSupported || isFetching || isDeleting}
onClick={() => setIsConfirmDialogOpen(true)}
>
{isFetching ? (
{isRWXSupported && isFetching ? (
<Text>
Loading...
<Spinner
Expand Down

0 comments on commit f13ae67

Please sign in to comment.