fix: do not get status of more than 10 resources defined by category
This commit is contained in:
parent
2105b1e7c4
commit
5c69ff3339
@ -127,15 +127,15 @@
|
|||||||
|
|
||||||
async function getStatus(resources: any, force: boolean = false) {
|
async function getStatus(resources: any, force: boolean = false) {
|
||||||
const { id, buildPack, dualCerts, type } = resources;
|
const { id, buildPack, dualCerts, type } = resources;
|
||||||
if (buildPack && applications.length > 10 && !force) {
|
if (buildPack && applications.length + filtered.otherApplications.length > 10 && !force) {
|
||||||
noInitialStatus.applications = true;
|
noInitialStatus.applications = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (type && services.length > 10 && !force) {
|
if (type && services.length + filtered.otherServices.length > 10 && !force) {
|
||||||
noInitialStatus.services = true;
|
noInitialStatus.services = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (databases.length > 10 && !force) {
|
if (databases.length + filtered.otherDatabases.length > 10 && !force) {
|
||||||
noInitialStatus.databases = true;
|
noInitialStatus.databases = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user