Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
maed-exporter-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Machine Data
maed-exporter
maed-exporter-frontend
Commits
d98a15b6
Commit
d98a15b6
authored
8 months ago
by
Leah Tacke genannt Unterberg
Browse files
Options
Downloads
Patches
Plain Diff
added logging to api reconnect
parent
40b6a5df
No related branches found
No related tags found
Loading
Pipeline
#481808
passed
8 months ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/App.vue
+2
-1
2 additions, 1 deletion
src/App.vue
src/services/mainStore.ts
+1
-1
1 addition, 1 deletion
src/services/mainStore.ts
with
3 additions
and
2 deletions
src/App.vue
+
2
−
1
View file @
d98a15b6
...
@@ -13,7 +13,8 @@ const constants = useConstantsStore()
...
@@ -13,7 +13,8 @@ const constants = useConstantsStore()
const
{
schemaReady
,
apiStatus
}
=
storeToRefs
(
store
)
const
{
schemaReady
,
apiStatus
}
=
storeToRefs
(
store
)
async
function
retestAPI
()
{
async
function
retestAPI
()
{
await
store
.
testAPI
()
const
apiStatus
=
await
store
.
testAPI
()
console
.
log
(
'
Attempted backend reconnect:
'
,
apiStatus
)
}
}
onMounted
(()
=>
constants
.
initViaAPI
())
onMounted
(()
=>
constants
.
initViaAPI
())
...
...
This diff is collapsed.
Click to expand it.
src/services/mainStore.ts
+
1
−
1
View file @
d98a15b6
...
@@ -23,7 +23,7 @@ export const useMainStore = defineStore('main', () => {
...
@@ -23,7 +23,7 @@ export const useMainStore = defineStore('main', () => {
const
schemaReady
=
computed
(()
=>
sessionReady
.
value
&&
(
originalDBSchema
.
value
!=
null
))
const
schemaReady
=
computed
(()
=>
sessionReady
.
value
&&
(
originalDBSchema
.
value
!=
null
))
async
function
testAPI
()
{
async
function
testAPI
()
{
if
(
apiStatus
===
"
disconnected
"
)
if
(
apiStatus
.
value
===
"
disconnected
"
)
apiStatus
.
value
=
"
connecting
"
apiStatus
.
value
=
"
connecting
"
const
r
=
await
keepAlive
()
const
r
=
await
keepAlive
()
if
(
r
?.
data
)
{
if
(
r
?.
data
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment