mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
page limit added
This commit is contained in:
committed by
Aiden McClelland
parent
0b618d7a68
commit
8e9daaa056
@@ -28,15 +28,17 @@ export class AppLogsPage {
|
||||
}
|
||||
|
||||
async getLogs () {
|
||||
const limit = 200
|
||||
try {
|
||||
// get logs
|
||||
const logs = await this.embassyApi.getPackageLogs({
|
||||
id: this.pkgId,
|
||||
before: this.before,
|
||||
limit,
|
||||
})
|
||||
this.firstTimeLoaded = true
|
||||
|
||||
if (!logs.length) {
|
||||
if (logs.length < limit) {
|
||||
this.needInfinite = false
|
||||
return
|
||||
}
|
||||
|
||||
@@ -26,11 +26,12 @@ export class ServerLogsPage {
|
||||
}
|
||||
|
||||
async getLogs () {
|
||||
const limit = 200
|
||||
try {
|
||||
// get logs
|
||||
const logs = await this.embassyApi.getServerLogs({ before: this.before })
|
||||
const logs = await this.embassyApi.getServerLogs({ before: this.before, limit })
|
||||
|
||||
if (!logs.length) {
|
||||
if (logs.length < limit) {
|
||||
this.needInfinite = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user