mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
[API Node] Show error toast (#3576)
This commit is contained in:
@@ -245,6 +245,7 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
|
|||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
const errorData = await response.json()
|
const errorData = await response.json()
|
||||||
error.value = `Failed to initiate credit purchase: ${errorData.message}`
|
error.value = `Failed to initiate credit purchase: ${errorData.message}`
|
||||||
|
showAuthErrorToast()
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -287,6 +288,7 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
|
|||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
const errorData = await response.json()
|
const errorData = await response.json()
|
||||||
error.value = `Failed to access billing portal: ${errorData.message}`
|
error.value = `Failed to access billing portal: ${errorData.message}`
|
||||||
|
showAuthErrorToast()
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user