mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
fix: hide body options for monitor type push
This commit is contained in:
parent
b2ede38269
commit
e670b5f4cf
1 changed files with 45 additions and 42 deletions
|
@ -733,52 +733,55 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Encoding -->
|
<template v-if="monitor.type !== 'push'">
|
||||||
<div class="my-3">
|
<!-- Encoding -->
|
||||||
<label for="httpBodyEncoding" class="form-label">{{ $t("Body Encoding") }}</label>
|
<div class="my-3">
|
||||||
<select id="httpBodyEncoding" v-model="monitor.httpBodyEncoding" class="form-select">
|
<label for="httpBodyEncoding" class="form-label">{{ $t("Body Encoding") }}</label>
|
||||||
<option value="json">JSON</option>
|
<select id="httpBodyEncoding" v-model="monitor.httpBodyEncoding" class="form-select">
|
||||||
<option value="form">x-www-form-urlencoded</option>
|
<option value="json">JSON</option>
|
||||||
<option value="xml">XML</option>
|
<option value="form">x-www-form-urlencoded</option>
|
||||||
</select>
|
<option value="xml">XML</option>
|
||||||
</div>
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Body -->
|
<!-- Body -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="body" class="form-label">{{ $t("Body") }}</label>
|
<label for="body" class="form-label">{{ $t("Body") }}</label>
|
||||||
<textarea id="body" v-model="monitor.body" class="form-control" :placeholder="bodyPlaceholder"></textarea>
|
<textarea id="body" v-model="monitor.body" class="form-control" :placeholder="bodyPlaceholder"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Headers -->
|
<!-- Headers -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="headers" class="form-label">{{ $t("Headers") }}</label>
|
<label for="headers" class="form-label">{{ $t("Headers") }}</label>
|
||||||
<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 Auth -->
|
<!-- HTTP Auth -->
|
||||||
<h4 class="mt-5 mb-2">{{ $t("Authentication") }}</h4>
|
<h4 class="mt-5 mb-2">{{ $t("Authentication") }}</h4>
|
||||||
|
|
||||||
|
<!-- Method -->
|
||||||
|
<div class="my-3">
|
||||||
|
<label for="method" class="form-label">{{ $t("Method") }}</label>
|
||||||
|
<select id="method" v-model="monitor.authMethod" class="form-select">
|
||||||
|
<option :value="null">
|
||||||
|
{{ $t("None") }}
|
||||||
|
</option>
|
||||||
|
<option value="basic">
|
||||||
|
{{ $t("HTTP Basic Auth") }}
|
||||||
|
</option>
|
||||||
|
<option value="oauth2-cc">
|
||||||
|
{{ $t("OAuth2: Client Credentials") }}
|
||||||
|
</option>
|
||||||
|
<option value="ntlm">
|
||||||
|
NTLM
|
||||||
|
</option>
|
||||||
|
<option value="mtls">
|
||||||
|
mTLS
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- Method -->
|
|
||||||
<div class="my-3">
|
|
||||||
<label for="method" class="form-label">{{ $t("Method") }}</label>
|
|
||||||
<select id="method" v-model="monitor.authMethod" class="form-select">
|
|
||||||
<option :value="null">
|
|
||||||
{{ $t("None") }}
|
|
||||||
</option>
|
|
||||||
<option value="basic">
|
|
||||||
{{ $t("HTTP Basic Auth") }}
|
|
||||||
</option>
|
|
||||||
<option value="oauth2-cc">
|
|
||||||
{{ $t("OAuth2: Client Credentials") }}
|
|
||||||
</option>
|
|
||||||
<option value="ntlm">
|
|
||||||
NTLM
|
|
||||||
</option>
|
|
||||||
<option value="mtls">
|
|
||||||
mTLS
|
|
||||||
</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<template v-if="monitor.authMethod && monitor.authMethod !== null ">
|
<template v-if="monitor.authMethod && monitor.authMethod !== null ">
|
||||||
<template v-if="monitor.authMethod === 'mtls' ">
|
<template v-if="monitor.authMethod === 'mtls' ">
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
|
|
Loading…
Reference in a new issue