|
|
@ -266,7 +266,7 @@
|
|
|
|
<textarea id="headers" v-model="monitor.headers" class="form-control" :placeholder="headersPlaceholder"></textarea>
|
|
|
|
<textarea id="headers" v-model="monitor.headers" class="form-control" :placeholder="headersPlaceholder"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- HTTP Basic Auth -->
|
|
|
|
<!-- HTTP Basic Auth -->
|
|
|
|
<h4 class="mt-5 mb-2">{{ $t("HTTP Basic Auth") }}</h4>
|
|
|
|
<h4 class="mt-5 mb-2">{{ $t("HTTP Basic Auth") }}</h4>
|
|
|
|
<div class="my-3">
|
|
|
|
<div class="my-3">
|
|
|
|
<label for="basicauth" class="form-label">{{ $t("Username") }}</label>
|
|
|
|
<label for="basicauth" class="form-label">{{ $t("Username") }}</label>
|
|
|
@ -496,7 +496,6 @@ export default {
|
|
|
|
this.monitor.headers = JSON.stringify(JSON.parse(this.monitor.headers), null, 4);
|
|
|
|
this.monitor.headers = JSON.stringify(JSON.parse(this.monitor.headers), null, 4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.isAdd) {
|
|
|
|
if (this.isAdd) {
|
|
|
|
this.$root.add(this.monitor, async (res) => {
|
|
|
|
this.$root.add(this.monitor, async (res) => {
|
|
|
|
|
|
|
|
|
|
|
|