mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
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:
2
gradle/changelog/clone_modal_fetch.yaml
Normal file
2
gradle/changelog/clone_modal_fetch.yaml
Normal 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))
|
||||||
@@ -81,6 +81,7 @@ const RepositoryEntry: FC<Props> = ({ repository, baseDate }) => {
|
|||||||
|
|
||||||
const createContentRight = () => (
|
const createContentRight = () => (
|
||||||
<ContentRightContainer>
|
<ContentRightContainer>
|
||||||
|
{openCloneModal && (
|
||||||
<Modal
|
<Modal
|
||||||
size="L"
|
size="L"
|
||||||
active={openCloneModal}
|
active={openCloneModal}
|
||||||
@@ -96,6 +97,7 @@ const RepositoryEntry: FC<Props> = ({ repository, baseDate }) => {
|
|||||||
}
|
}
|
||||||
closeFunction={() => setOpenCloneModal(false)}
|
closeFunction={() => setOpenCloneModal(false)}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
<QuickActionbar>
|
<QuickActionbar>
|
||||||
<QuickAction
|
<QuickAction
|
||||||
name="download"
|
name="download"
|
||||||
|
|||||||
Reference in New Issue
Block a user