Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Merge requests
!1237
Release 3.0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Release 3.0
merge-release-3.0
into
master
Overview
0
Commits
134
Pipelines
1
Changes
64
Merged
Jonathan Weth
requested to merge
merge-release-3.0
into
master
1 year ago
Overview
0
Commits
134
Pipelines
1
Changes
64
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
fca8762e
134 commits,
1 year ago
64 files
+
4421
−
3079
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
64
Search (e.g. *.vue) (Ctrl+P)
aleksis/core/frontend/app/apollo.js
+
3
−
2
Options
@@ -70,7 +70,7 @@ const apolloOpts = {
}
// Add a snackbar on all errors returned by the GraphQL endpoint
// If App is offline, don't add snackbar since only the ping query is active
if
(
!
vm
.
$root
.
offline
)
{
if
(
!
vm
.
$root
.
offline
&&
!
vm
.
$root
.
invalidation
)
{
vm
.
$root
.
snackbarItems
.
push
({
id
:
crypto
.
randomUUID
(),
timeout
:
5000
,
@@ -79,7 +79,7 @@ const apolloOpts = {
});
}
}
if
(
networkError
)
{
if
(
networkError
&&
!
vm
.
$root
.
invalidation
)
{
// Set app offline globally on network errors
// This will cause the offline logic to kick in, starting a ping check or
// similar recovery strategies depending on the app/navigator state
@@ -90,6 +90,7 @@ const apolloOpts = {
vm
.
$root
.
offline
=
true
;
}
},
fetchPolicy
:
"
cache-and-network
"
,
},
},
};
Loading