Fetch clone modal data on first opening (#1784)

Get the data of the clone modal the first time it is opened. This way, we display a loading spinner for a fraction of a second when the modal is first opened. But we also prevent fetching a lot of data that is probably not needed.
This commit is contained in:
Eduard Heimbuch
2021-08-31 07:39:02 +02:00
committed by GitHub
parent cf55b15d21
commit 58f792a285
2 changed files with 19 additions and 15 deletions

View File

@@ -0,0 +1,2 @@
- type: Fixed
description: Fetch clone modal data on first opening ([#1784](https://github.com/scm-manager/scm-manager/pull/1784))

View File

@@ -81,6 +81,7 @@ const RepositoryEntry: FC<Props> = ({ repository, baseDate }) => {
const createContentRight = () => (
<ContentRightContainer>
{openCloneModal && (
<Modal
size="L"
active={openCloneModal}
@@ -96,6 +97,7 @@ const RepositoryEntry: FC<Props> = ({ repository, baseDate }) => {
}
closeFunction={() => setOpenCloneModal(false)}
/>
)}
<QuickActionbar>
<QuickAction
name="download"