Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
3c0a37fe
Commit
3c0a37fe
authored
Apr 06, 2022
by
Stefan Probst
Browse files
chore: log
parent
d0196117
Pipeline
#288860
passed with stages
in 9 minutes and 46 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/core/auth/AuthProvider.tsx
View file @
3c0a37fe
...
...
@@ -208,6 +208,8 @@ export function AuthProvider(props: AuthProviderProps): JSX.Element {
messages
:
{
mutate
()
{
return
t
([
'
common
'
,
'
auth
'
,
'
signing-in
'
])
// FIXME: never gets updated with success message, not sure why
// return false
},
success
()
{
return
t
([
'
common
'
,
'
auth
'
,
'
sign-in-success
'
])
...
...
src/lib/core/query/create-query-client.ts
View file @
3c0a37fe
...
...
@@ -60,7 +60,8 @@ export function createQueryClient(defaultErrorMessages: DefaultErrorMessageMap):
?
meta
.
messages
.
mutate
(
variables
,
mutation
)
:
undefined
const
message
=
customMessage
!=
null
?
customMessage
:
defaultErrorMessages
.
mutation
.
mutate
console
.
log
(
'
Mutation notification
'
,
message
,
mutation
.
mutationId
)
console
.
info
(
'
Mutate notification
'
,
message
,
'
"
'
+
String
(
mutation
.
mutationId
)
+
'
"
'
)
/** Global loading toast can be prevented when `meta.messages.mutate` returns `false`. */
if
(
message
!==
false
)
{
const
toastId
=
String
(
mutation
.
mutationId
)
...
...
@@ -75,7 +76,8 @@ export function createQueryClient(defaultErrorMessages: DefaultErrorMessageMap):
:
undefined
const
message
=
customMessage
!=
null
?
customMessage
:
defaultErrorMessages
.
mutation
.
success
console
.
log
(
'
Success notification
'
,
message
,
mutation
.
mutationId
)
console
.
info
(
'
Success notification
'
,
message
,
'
"
'
+
String
(
mutation
.
mutationId
)
+
'
"
'
)
/** Global loading toast can be prevented when `meta.messages.mutate` returns `false`. */
if
(
message
!==
false
)
{
const
toastId
=
String
(
mutation
.
mutationId
)
...
...
@@ -87,7 +89,7 @@ export function createQueryClient(defaultErrorMessages: DefaultErrorMessageMap):
closeButton
:
null
,
closeOnClick
:
null
,
draggable
:
null
,
delay
:
1
0
0
,
// Work around one of the race conditions in `react-toastify`.
delay
:
1
5
0
,
// Work around one of the race conditions in `react-toastify`.
})
}
},
...
...
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