Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
03071ef3
Commit
03071ef3
authored
Mar 23, 2022
by
Paul Gascou-Vaillancourt
Committed by
Paul Gascou-Vaillancourt
Mar 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log ArkoseLabs init failures
parent
036ee565
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ee/app/assets/javascripts/arkose_labs/components/sign_in_arkose_app.vue
...javascripts/arkose_labs/components/sign_in_arkose_app.vue
+4
-3
No files found.
ee/app/assets/javascripts/arkose_labs/components/sign_in_arkose_app.vue
View file @
03071ef3
...
@@ -116,7 +116,7 @@ export default {
...
@@ -116,7 +116,7 @@ export default {
// If the requests fails with a 404 code, we can fail silently.
// If the requests fails with a 404 code, we can fail silently.
// We show a generic error message for any other failure.
// We show a generic error message for any other failure.
if
(
e
.
response
?.
status
!==
404
)
{
if
(
e
.
response
?.
status
!==
404
)
{
this
.
handleArkoseLabsFailure
();
this
.
handleArkoseLabsFailure
(
e
);
}
}
}
finally
{
}
finally
{
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
...
@@ -138,8 +138,9 @@ export default {
...
@@ -138,8 +138,9 @@ export default {
this
.
arkoseToken
=
response
.
token
;
this
.
arkoseToken
=
response
.
token
;
this
.
hideErrors
();
this
.
hideErrors
();
},
},
handleArkoseLabsFailure
()
{
handleArkoseLabsFailure
(
e
)
{
// TODO - do we get an error object here we can console log?
// eslint-disable-next-line no-console, @gitlab/require-i18n-strings
console
.
error
(
'
ArkoseLabs initialization error
'
,
e
);
this
.
showArkoseFailure
=
true
;
this
.
showArkoseFailure
=
true
;
},
},
updateSubmitButtonLoading
(
val
)
{
updateSubmitButtonLoading
(
val
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment