mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
refactor: hide metabar on auth error
This commit is contained in:
parent
6a21e7ce46
commit
ee472899ae
2 changed files with 9 additions and 11 deletions
|
|
@ -6,7 +6,7 @@ import * as React from 'react'
|
|||
export function AccessDeniedDescription({ hasToken }: { hasToken: boolean }) {
|
||||
return (
|
||||
<div className={'description'}>
|
||||
<h5>Access Denied</h5>
|
||||
<h2>Access Denied</h2>
|
||||
{hasToken ? (
|
||||
<>
|
||||
<p>
|
||||
|
|
|
|||
|
|
@ -120,17 +120,13 @@ const RawGitako: React.FC<Props & ConnectorState> = function RawGitako(props) {
|
|||
</button>
|
||||
</div>
|
||||
<div className={'gitako-side-bar-content'}>
|
||||
{metaData ? (
|
||||
<div className={'header'}>
|
||||
<MetaBar metaData={metaData} />
|
||||
</div>
|
||||
) : (
|
||||
<LoadingIndicator text={'Fetching repo meta...'} />
|
||||
)}
|
||||
{errorDueToAuth ? (
|
||||
<AccessDeniedDescription hasToken={Boolean(accessToken)} />
|
||||
) : (
|
||||
metaData && (
|
||||
) : metaData ? (
|
||||
<>
|
||||
<div className={'header'}>
|
||||
<MetaBar metaData={metaData} />
|
||||
</div>
|
||||
<FileExplorer
|
||||
toggleShowSettings={toggleShowSettings}
|
||||
metaData={metaData}
|
||||
|
|
@ -141,7 +137,9 @@ const RawGitako: React.FC<Props & ConnectorState> = function RawGitako(props) {
|
|||
config={configContext.value}
|
||||
defer={defer}
|
||||
/>
|
||||
)
|
||||
</>
|
||||
) : (
|
||||
<LoadingIndicator text={'Fetching repo meta...'} />
|
||||
)}
|
||||
</div>
|
||||
<SettingsBar
|
||||
|
|
|
|||
Loading…
Reference in a new issue