diff --git a/src/components/SideBar.tsx b/src/components/SideBar.tsx index b884626..ffe9643 100644 --- a/src/components/SideBar.tsx +++ b/src/components/SideBar.tsx @@ -109,7 +109,7 @@ const RawGitako: React.FC = function RawGitako(props) {
{metaData && } {errorDueToAuth - ? renderAccessDeniedError() + ? renderAccessDeniedError(Boolean(accessToken)) : metaData && (
Access Denied
-

- Due to{' '} - - limitation of GitHub - {' '} - or{' '} - - auth needs - - , Gitako needs access token to continue. Please follow the instructions in the settings - panel below. -

+ {hasToken ? ( + <> +

+ Current access token is either invalid or not granted with permissions to access this + project. +

+

+ You can grant or request access{' '} + + here + {' '} + if you setup Gitako with OAuth. +

+ + ) : ( +

+ Gitako needs access token to read this project due to{' '} + + GitHub rate limiting + {' '} + and{' '} + + auth needs + + . Please setup access token in the settings panel below. +

+ )}
) } diff --git a/src/driver/core/SideBar.ts b/src/driver/core/SideBar.ts index f8f282d..10ef1b7 100644 --- a/src/driver/core/SideBar.ts +++ b/src/driver/core/SideBar.ts @@ -140,7 +140,6 @@ export const handleError: BoundMethodCreator<[Error]> = dispatch => async err => ) { dispatch.set({ errorDueToAuth: true }) dispatch.call(setShowSettings, true) - dispatch.call(setShouldShow, true) } else { dispatch.call(setError, 'Gitako ate a bug, but it should recovery soon!') throw err