mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-19 10:46:48 +02:00
maxbeats simplification
This commit is contained in:
parent
eb47b1f14f
commit
88b3cfc640
1 changed files with 1 additions and 5 deletions
|
@ -791,12 +791,8 @@ export default {
|
||||||
* @returns {Promise} Promise that resolves when data is loaded
|
* @returns {Promise} Promise that resolves when data is loaded
|
||||||
*/
|
*/
|
||||||
loadHeartbeatData(maxBeats = null) {
|
loadHeartbeatData(maxBeats = null) {
|
||||||
// If maxBeats is provided (from HeartbeatBar resize), use it
|
|
||||||
// Otherwise, use a default that will be updated when components mount
|
|
||||||
const targetMaxBeats = maxBeats || 50; // Default, will be updated by actual container measurement
|
|
||||||
|
|
||||||
return axios.get("/api/status-page/heartbeat/" + this.slug, {
|
return axios.get("/api/status-page/heartbeat/" + this.slug, {
|
||||||
params: { maxBeats: targetMaxBeats }
|
params: { maxBeats }
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
const { heartbeatList, uptimeList } = res.data;
|
const { heartbeatList, uptimeList } = res.data;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue