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,21 +81,23 @@ const RepositoryEntry: FC<Props> = ({ repository, baseDate }) => {
|
|||||||
|
|
||||||
const createContentRight = () => (
|
const createContentRight = () => (
|
||||||
<ContentRightContainer>
|
<ContentRightContainer>
|
||||||
<Modal
|
{openCloneModal && (
|
||||||
size="L"
|
<Modal
|
||||||
active={openCloneModal}
|
size="L"
|
||||||
title={t("overview.clone")}
|
active={openCloneModal}
|
||||||
body={
|
title={t("overview.clone")}
|
||||||
<ExtensionPoint
|
body={
|
||||||
name="repos.repository-details.information"
|
<ExtensionPoint
|
||||||
renderAll={true}
|
name="repos.repository-details.information"
|
||||||
props={{
|
renderAll={true}
|
||||||
repository,
|
props={{
|
||||||
}}
|
repository,
|
||||||
/>
|
}}
|
||||||
}
|
/>
|
||||||
closeFunction={() => setOpenCloneModal(false)}
|
}
|
||||||
/>
|
closeFunction={() => setOpenCloneModal(false)}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<QuickActionbar>
|
<QuickActionbar>
|
||||||
<QuickAction
|
<QuickAction
|
||||||
name="download"
|
name="download"
|
||||||
|
|||||||
Reference in New Issue
Block a user