Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/renderer/routes/LoginWithDeviceFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
Text,
} from '@primer/react';

import { Constants } from '../constants';

import { useAppContext } from '../hooks/useAppContext';

import { Contents } from '../components/layout/Contents';
Expand All @@ -33,6 +35,7 @@
} from '../utils/auth/utils';
import { rendererLogError } from '../utils/core/logger';
import { copyToClipboard, openExternalLink } from '../utils/system/comms';
import { openDeveloperSettings } from '../utils/system/links';

interface LocationState {
account?: Account;
Expand Down Expand Up @@ -262,6 +265,27 @@
</Text>
</Stack>
</Button>

<Stack gap="none">
<Text as="em" size="small">
Note: to change previously granted permissions, revoke Gitify's
access at{' '}
<button
className="text-gitify-link cursor-pointer"
onClick={() =>
openDeveloperSettings({
hostname: Constants.GITHUB_HOSTNAME,
method: 'GitHub App',
} as Account)
}
title="GitHub → Developer Settings"
type="button"
>
GitHub → Developer Settings
</button>

Check warning on line 285 in src/renderer/routes/LoginWithDeviceFlow.tsx

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Ambiguous spacing after previous element button

See more on https://sonarcloud.io/project/issues?id=gitify-app_gitify&issues=AZ0gh1MNvfs54vKfhX8x&open=AZ0gh1MNvfs54vKfhX8x&pullRequest=2739
, then re-authorize above.
</Text>
</Stack>
</Stack>
</Stack>
);
Expand Down
Loading