diff --git a/server/model/monitor.js b/server/model/monitor.js index 7449f1590..4d760d366 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -42,6 +42,7 @@ class Monitor extends BeanModel { id: this.id, name: this.name, sendUrl: this.sendUrl, + type: this.type, }; if (this.sendUrl) { @@ -52,7 +53,7 @@ class Monitor extends BeanModel { obj.tags = await this.getTags(); } - if (certExpiry) { + if (certExpiry && this.type === "http") { const { certExpiryDaysRemaining, validCert } = await this.getCertExpiry(this.id); obj.certExpiryDaysRemaining = certExpiryDaysRemaining; obj.validCert = validCert; diff --git a/src/components/PublicGroupList.vue b/src/components/PublicGroupList.vue index 59d639719..b885a1a17 100644 --- a/src/components/PublicGroupList.vue +++ b/src/components/PublicGroupList.vue @@ -60,10 +60,14 @@ @click="$refs.monitorSettingDialog.show(group, monitor)" /> - {{ $t("Expiry") }}: {{ formattedCertExpiryMessage(monitor) }} -