Skip to content

Commit

Permalink
[louislam#2501] edit Monitor & Status Page
Browse files Browse the repository at this point in the history
- enable HTTP Method, Headers and Body for monitor type `mp-health` when editing the entry.
- enable `Toggle Clickable Link` for monitor type `mp-health` when editing a monitor entry on the status page.
  • Loading branch information
skaempfe committed Jan 2, 2023
1 parent 8131f31 commit 309379f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/PublicGroupList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default {
// We must check if there are any elements in monitorList to
// prevent undefined errors if it hasn't been loaded yet
if (this.$parent.editMode && ignoreSendUrl && Object.keys(this.$root.monitorList).length) {
return this.$root.monitorList[monitor.element.id].type === "http" || this.$root.monitorList[monitor.element.id].type === "keyword";
return this.$root.monitorList[monitor.element.id].type === "http" || this.$root.monitorList[monitor.element.id].type === "keyword" || this.$root.monitorList[monitor.element.id].type === "mp-health";
}
return monitor.element.sendUrl && monitor.element.url && monitor.element.url !== "https://" && !this.editMode;
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/EditMonitor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
</div>

<!-- HTTP Options -->
<template v-if="monitor.type === 'http' || monitor.type === 'keyword' ">
<template v-if="monitor.type === 'http' || monitor.type === 'keyword' || monitor.type === 'mp-health' ">
<h2 class="mt-5 mb-2">{{ $t("HTTP Options") }}</h2>

<!-- Method -->
Expand Down

0 comments on commit 309379f

Please sign in to comment.