mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-24 14:31:20 +00:00
Merge pull request #12506 from overleaf/msm-check-github-module-frontend
[web] add checks for github and V1 being available GitOrigin-RevId: 90ba19d41c28bbc96d07825086697d2f946eabcd
This commit is contained in:
parent
17a98d756e
commit
ea0df8a7dd
1 changed files with 10 additions and 8 deletions
|
@ -192,14 +192,16 @@ function NewProjectButton({
|
||||||
>
|
>
|
||||||
{t('upload_project')}
|
{t('upload_project')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<ImportProjectFromGithubMenu
|
{ImportProjectFromGithubMenu && (
|
||||||
onClick={e =>
|
<ImportProjectFromGithubMenu
|
||||||
handleModalMenuClick(e, {
|
onClick={e =>
|
||||||
modalVariant: 'import_from_github',
|
handleModalMenuClick(e, {
|
||||||
dropdownMenuEvent: 'import-from-github',
|
modalVariant: 'import_from_github',
|
||||||
})
|
dropdownMenuEvent: 'import-from-github',
|
||||||
}
|
})
|
||||||
/>
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{portalTemplates?.length > 0 ? (
|
{portalTemplates?.length > 0 ? (
|
||||||
<>
|
<>
|
||||||
<MenuItem divider />
|
<MenuItem divider />
|
||||||
|
|
Loading…
Reference in a new issue