diff --git a/src/pages/DashboardHome.vue b/src/pages/DashboardHome.vue index 3cd12269b2..3baf35a622 100644 --- a/src/pages/DashboardHome.vue +++ b/src/pages/DashboardHome.vue @@ -132,9 +132,8 @@ export default { methods: { /** * Updates the displayed records when a new important heartbeat arrives. - * * @param {object} heartbeat - The heartbeat object received. - * @return {void} + * @returns {void} */ onNewImportantHeartbeat(heartbeat) { if (this.page === 1) { @@ -148,8 +147,7 @@ export default { /** * Retrieves the length of the important heartbeat list for all monitors. - * - * @return {void} + * @returns {void} */ getImportantHeartbeatListLength() { this.$root.getSocket().emit("monitorImportantHeartbeatListCount", null, (res) => { @@ -162,8 +160,7 @@ export default { /** * Retrieves the important heartbeat list for the current page. - * - * @return {void} + * @returns {void} */ getImportantHeartbeatListPaged() { const offset = (this.page - 1) * this.perPage; @@ -174,6 +171,10 @@ export default { }); }, + /** + * Updates the number of items shown per page based on the available height. + * @returns {void} + */ updatePerPage() { const tableContainer = this.$refs.tableContainer; const tableContainerHeight = tableContainer.offsetHeight; diff --git a/src/pages/Details.vue b/src/pages/Details.vue index 0f14a9dc91..e4cb368edf 100644 --- a/src/pages/Details.vue +++ b/src/pages/Details.vue @@ -512,8 +512,7 @@ export default { /** * Retrieves the length of the important heartbeat list for this monitor. - * - * @return {void} + * @returns {void} */ getImportantHeartbeatListLength() { if (this.monitor) { @@ -528,8 +527,7 @@ export default { /** * Retrieves the important heartbeat list for the current page. - * - * @return {void} + * @returns {void} */ getImportantHeartbeatListPaged() { if (this.monitor) { @@ -544,8 +542,8 @@ export default { /** * Updates the displayed records when a new important heartbeat arrives. - * * @param {object} heartbeat - The heartbeat object received. + * @returns {void} */ onNewImportantHeartbeat(heartbeat) { if (heartbeat.monitorID === this.monitor?.id) {