lint fixes

This commit is contained in:
mohit-nagaraj 2024-10-12 01:11:07 +05:30
parent e90965a212
commit d7f9a9b471
No known key found for this signature in database

View file

@ -1,3 +1,4 @@
<!-- eslint-disable linebreak-style -->
<template>
<transition name="slide-fade" appear>
<div v-if="monitor">
@ -411,7 +412,7 @@ export default {
const minutes = Math.floor((this.timeRemaining % 3600) / 60);
const seconds = this.timeRemaining % 60;
let formattedTime = '';
let formattedTime = "";
if (days > 0) {
formattedTime += `${days}:`;
}
@ -446,7 +447,7 @@ export default {
},
created() {
if (this.lastHeartBeat.end_time) {
const lastpingtime = dayjs().utc().diff(dayjs.utc(this.lastHeartBeat.end_time), "seconds")
const lastpingtime = dayjs().utc().diff(dayjs.utc(this.lastHeartBeat.end_time), "seconds");
this.timeRemaining = this.monitor.interval - lastpingtime;
} else {
this.timeRemaining = this.monitor.interval;