Skip to content

Commit

Permalink
fix(scopes): description
Browse files Browse the repository at this point in the history
  • Loading branch information
h13i32maru committed Oct 6, 2020
1 parent 9590f12 commit ff10f48
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Renderer/Fragment/Pref/PrefScopeErrorFragment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {ClickView} from '../../Library/View/ClickView';
import {Image} from '../../Library/View/Image';
import {ShellUtil} from '../../Library/Util/ShellUtil';
import {PlatformUtil} from '../../Library/Util/PlatformUtil';
import {VersionPolling} from '../../Repository/Polling/VersionPolling';

type Props = {
githubUrl: string;
Expand All @@ -31,6 +32,7 @@ export class PrefScopeErrorFragment extends React.Component<Props, State> {
}

render() {
const version = VersionPolling.getVersion();
return (
<Modal show={true} onClose={() => null}>
<Root>
Expand All @@ -41,16 +43,16 @@ export class PrefScopeErrorFragment extends React.Component<Props, State> {
</LangRow>

<Text style={{display: this.state.lang !== 'ja' ? 'inline' : 'none'}}>
Jasper(v1.0.0~) now requires <ScopeName>notifications</ScopeName> and <ScopeName>read:org</ScopeName> scopes.
Jasper v{version} requires additional <ScopeName>notifications</ScopeName> and <ScopeName>read:org</ScopeName> scopes.
<br/>
Please enable those scopes at GitHub/GHE site.
Add these scopes to your current access tokens from the GitHub/GHE token edit screen.
<br/>
<ScopeNote>requires scopes: repo, user, notifications and read:org</ScopeNote>
</Text>
<Text style={{display: this.state.lang === 'ja' ? 'inline' : 'none'}}>
Jasper(v1.0.0~)は新たに<ScopeName>notifications</ScopeName><ScopeName>read:org</ScopeName>のスコープを必要とします。
Jasper v{version}は追加で<ScopeName>notifications</ScopeName><ScopeName>read:org</ScopeName>のスコープを必要とします。
<br/>
これらのスコープをGitHub/GHEのサイトで有効にしてください
GitHub/GHEのトークン編集画面から、現在利用中のアクセストークンにこれらのスコープを追加してください
<br/>
<ScopeNote>必要なスコープ: repo, user, notifications, read:org</ScopeNote>
</Text>
Expand All @@ -64,7 +66,7 @@ export class PrefScopeErrorFragment extends React.Component<Props, State> {
<ButtonRow>
<Button onClick={() => this.props.onRetry()}>OK</Button>
<View style={{width: space.large}}/>
<Button onClick={() => this.handleOpenSettings()} type='primary'>Open Settings</Button>
<Button onClick={() => this.handleOpenSettings()} type='primary'>Open GitHub/GHE</Button>
</ButtonRow>
</Root>
</Modal>
Expand Down

0 comments on commit ff10f48

Please sign in to comment.