mirror of https://github.com/portainer/portainer
fix(home): exclude snapshots from the home page to improve the loading times EE-5154 (#8626)
parent
ea03024fbc
commit
44582732bb
|
@ -130,7 +130,7 @@ class AuthenticationController {
|
||||||
async checkForEndpointsAsync() {
|
async checkForEndpointsAsync() {
|
||||||
try {
|
try {
|
||||||
const isAdmin = this.Authentication.isAdmin();
|
const isAdmin = this.Authentication.isAdmin();
|
||||||
const endpoints = await getEnvironments({ limit: 1 });
|
const endpoints = await getEnvironments({ limit: 1, query: { excludeSnapshots: true } });
|
||||||
|
|
||||||
if (this.Authentication.getUserDetails().forceChangePassword) {
|
if (this.Authentication.getUserDetails().forceChangePassword) {
|
||||||
return this.$state.go('portainer.account');
|
return this.$state.go('portainer.account');
|
||||||
|
|
Loading…
Reference in New Issue