File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ class Gitment {
98
98
link : replacedUrl ,
99
99
} , options )
100
100
101
- this . state . user . loginning = true
101
+ this . state . user . isLoggingIn = true
102
102
http . post ( 'https://gh-oauth.imsun.net' , {
103
103
code,
104
104
client_id,
@@ -109,7 +109,7 @@ class Gitment {
109
109
this . update ( )
110
110
} )
111
111
. catch ( e => {
112
- this . user . loginning = false
112
+ this . state . user . isLoggingIn = false
113
113
alert ( e )
114
114
} )
115
115
} else {
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ function renderEditor({ user }, instance) {
199
199
? `<a class="gitment-editor-avatar" href="${ user . html_url } " target="_blank">
200
200
<img class="gitment-editor-avatar-img" src="${ user . avatar_url } "/>
201
201
</a>`
202
- : user . loginning
202
+ : user . isLoggingIn
203
203
? `<div class="gitment-editor-avatar">${ spinnerIcon } </div>`
204
204
: `<a class="gitment-editor-avatar" href="${ instance . loginLink } " title="login with GitHub">
205
205
${ githubIcon }
@@ -215,8 +215,8 @@ function renderEditor({ user }, instance) {
215
215
<div class="gitment-editor-login">
216
216
${ user . login
217
217
? '<a class="gitment-editor-logout-link">Logout</a>'
218
- : user . loginning
219
- ? 'Loginning ...'
218
+ : user . isLoggingIn
219
+ ? 'Logging in ...'
220
220
: `<a class="gitment-editor-login-link" href="${ instance . loginLink } ">Login</a> with GitHub`
221
221
}
222
222
</div>
You can’t perform that action at this time.
0 commit comments