Show proxy option for http monitor only

This commit is contained in:
Louis Lam 2022-04-07 14:37:33 +08:00
parent 6014b9534f
commit e89356b283

View file

@ -232,7 +232,8 @@
</button> </button>
<!-- Proxies --> <!-- Proxies -->
<h2 class="mt-5 mb-2">{{ $t("Proxies") }}</h2> <div v-if="monitor.type === 'http' || monitor.type === 'keyword'">
<h2 class="mt-5 mb-2">{{ $t("Proxy") }}</h2>
<p v-if="$root.proxyList.length === 0"> <p v-if="$root.proxyList.length === 0">
{{ $t("Not available, please setup.") }} {{ $t("Not available, please setup.") }}
</p> </p>
@ -256,6 +257,7 @@
<button class="btn btn-primary me-2" type="button" @click="$refs.proxyDialog.show()"> <button class="btn btn-primary me-2" type="button" @click="$refs.proxyDialog.show()">
{{ $t("Setup Proxy") }} {{ $t("Setup Proxy") }}
</button> </button>
</div>
<!-- HTTP Options --> <!-- HTTP Options -->
<template v-if="monitor.type === 'http' || monitor.type === 'keyword' "> <template v-if="monitor.type === 'http' || monitor.type === 'keyword' ">