Skip to content

Commit bbce96f

Browse files
committed
fix(settings-modal): update token link, hide notes if token is filled
1 parent 7f09eb5 commit bbce96f

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/components/modals/settings-modal.vue

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,23 @@
2727
</fieldset>
2828
<fieldset>
2929
<legend>GitHub API</legend>
30-
<label for="authToken">Token</label>
31-
<textarea id="authToken" v-model.trim="form.authToken" placeholder="authToken" />
32-
<ol>
30+
<ol v-if="!form.authToken">
3331
<li>
3432
Go to
35-
<a href="https://github.com/settings/tokens?type=beta" title="github tokens page">
36-
github.com/settings/tokens
33+
<a
34+
href="https://github.com/settings/personal-access-tokens/new"
35+
target="_blank"
36+
rel="noopener noreferrer"
37+
title="github tokens page"
38+
>
39+
<b>fine-grained tokens page</b>
3740
</a>
3841
</li>
39-
<li>Click <b>Generate new token</b></li>
40-
<li>Add Read-only permissions: Actions, Contents, Metadata</li>
41-
<li>Click <b>Generate Token</b> and paste it here</li>
42+
<li>Add Read-only access to Actions, Contents, Metadata</li>
43+
<li>Click <b>Generate token</b> and paste it here</li>
4244
</ol>
45+
<label for="authToken">Token</label>
46+
<textarea id="authToken" v-model.trim="form.authToken" placeholder="authToken" />
4347
</fieldset>
4448
<fieldset>
4549
<legend>Feed</legend>

0 commit comments

Comments
 (0)