mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-17 09:05:56 +00:00
Revert unintentional changes to EditMonitor.vue
Reverts unintentional changes committed in: d92003e172
This commit is contained in:
parent
4699a1ccd8
commit
d83c2b90c9
1 changed files with 105 additions and 32 deletions
|
@ -162,7 +162,12 @@
|
||||||
|
|
||||||
<div v-if="remoteBrowsersToggle">
|
<div v-if="remoteBrowsersToggle">
|
||||||
<label for="remote-browser" class="form-label">{{ $t("Remote Browser") }}</label>
|
<label for="remote-browser" class="form-label">{{ $t("Remote Browser") }}</label>
|
||||||
<ActionSelect v-model="monitor.remote_browser" :options="remoteBrowsersOptions" icon="plus" :action="() => $refs.remoteBrowserDialog.show()" />
|
<ActionSelect
|
||||||
|
v-model="monitor.remote_browser"
|
||||||
|
:options="remoteBrowsersOptions"
|
||||||
|
icon="plus"
|
||||||
|
:action="() => $refs.remoteBrowserDialog.show()"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -196,7 +201,22 @@
|
||||||
<!-- Kafka Brokers List -->
|
<!-- Kafka Brokers List -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="kafkaProducerBrokers" class="form-label">{{ $t("Kafka Brokers") }}</label>
|
<label for="kafkaProducerBrokers" class="form-label">{{ $t("Kafka Brokers") }}</label>
|
||||||
<VueMultiselect id="kafkaProducerBrokers" v-model="monitor.kafkaProducerBrokers" :multiple="true" :options="[]" :placeholder="$t('Enter the list of brokers')" :tag-placeholder="$t('Press Enter to add broker')" :max-height="500" :taggable="true" :show-no-options="false" :close-on-select="false" :clear-on-select="false" :preserve-search="false" :preselect-first="false" @tag="addKafkaProducerBroker"></VueMultiselect>
|
<VueMultiselect
|
||||||
|
id="kafkaProducerBrokers"
|
||||||
|
v-model="monitor.kafkaProducerBrokers"
|
||||||
|
:multiple="true"
|
||||||
|
:options="[]"
|
||||||
|
:placeholder="$t('Enter the list of brokers')"
|
||||||
|
:tag-placeholder="$t('Press Enter to add broker')"
|
||||||
|
:max-height="500"
|
||||||
|
:taggable="true"
|
||||||
|
:show-no-options="false"
|
||||||
|
:close-on-select="false"
|
||||||
|
:clear-on-select="false"
|
||||||
|
:preserve-search="false"
|
||||||
|
:preselect-first="false"
|
||||||
|
@tag="addKafkaProducerBroker"
|
||||||
|
></VueMultiselect>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Kafka Topic Name -->
|
<!-- Kafka Topic Name -->
|
||||||
|
@ -313,7 +333,19 @@
|
||||||
<label for="dns_resolve_type" class="form-label">{{ $t("Resource Record Type") }}</label>
|
<label for="dns_resolve_type" class="form-label">{{ $t("Resource Record Type") }}</label>
|
||||||
|
|
||||||
<!-- :allow-empty="false" is not working, set a default value instead https://github.com/shentao/vue-multiselect/issues/336 -->
|
<!-- :allow-empty="false" is not working, set a default value instead https://github.com/shentao/vue-multiselect/issues/336 -->
|
||||||
<VueMultiselect id="dns_resolve_type" v-model="monitor.dns_resolve_type" :options="dnsresolvetypeOptions" :multiple="false" :close-on-select="true" :clear-on-select="false" :preserve-search="false" :placeholder="$t('Pick a RR-Type...')" :preselect-first="false" :max-height="500" :taggable="false"></VueMultiselect>
|
<VueMultiselect
|
||||||
|
id="dns_resolve_type"
|
||||||
|
v-model="monitor.dns_resolve_type"
|
||||||
|
:options="dnsresolvetypeOptions"
|
||||||
|
:multiple="false"
|
||||||
|
:close-on-select="true"
|
||||||
|
:clear-on-select="false"
|
||||||
|
:preserve-search="false"
|
||||||
|
:placeholder="$t('Pick a RR-Type...')"
|
||||||
|
:preselect-first="false"
|
||||||
|
:max-height="500"
|
||||||
|
:taggable="false"
|
||||||
|
></VueMultiselect>
|
||||||
|
|
||||||
<div class="form-text">
|
<div class="form-text">
|
||||||
{{ $t("rrtypeDescription") }}
|
{{ $t("rrtypeDescription") }}
|
||||||
|
@ -333,7 +365,16 @@
|
||||||
<div v-if="monitor.type === 'docker'" class="my-3">
|
<div v-if="monitor.type === 'docker'" class="my-3">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="docker-host" class="form-label">{{ $t("Docker Host") }}</label>
|
<label for="docker-host" class="form-label">{{ $t("Docker Host") }}</label>
|
||||||
<ActionSelect id="docker-host" v-model="monitor.docker_host" :action-aria-label="$t('openModalTo', $t('Setup Docker Host'))" :options="dockerHostOptionsList" :disabled="$root.dockerHostList == null || $root.dockerHostList.length === 0" :icon="'plus'" :action="() => $refs.dockerHostDialog.show()" :required="true" />
|
<ActionSelect
|
||||||
|
id="docker-host"
|
||||||
|
v-model="monitor.docker_host"
|
||||||
|
:action-aria-label="$t('openModalTo', $t('Setup Docker Host'))"
|
||||||
|
:options="dockerHostOptionsList"
|
||||||
|
:disabled="$root.dockerHostList == null || $root.dockerHostList.length === 0"
|
||||||
|
:icon="'plus'"
|
||||||
|
:action="() => $refs.dockerHostDialog.show()"
|
||||||
|
:required="true"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -537,7 +578,19 @@
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="acceptedStatusCodes" class="form-label">{{ $t("Accepted Status Codes") }}</label>
|
<label for="acceptedStatusCodes" class="form-label">{{ $t("Accepted Status Codes") }}</label>
|
||||||
|
|
||||||
<VueMultiselect id="acceptedStatusCodes" v-model="monitor.accepted_statuscodes" :options="acceptedStatusCodeOptions" :multiple="true" :close-on-select="false" :clear-on-select="false" :preserve-search="true" :placeholder="$t('Pick Accepted Status Codes...')" :preselect-first="false" :max-height="600" :taggable="true"></VueMultiselect>
|
<VueMultiselect
|
||||||
|
id="acceptedStatusCodes"
|
||||||
|
v-model="monitor.accepted_statuscodes"
|
||||||
|
:options="acceptedStatusCodeOptions"
|
||||||
|
:multiple="true"
|
||||||
|
:close-on-select="false"
|
||||||
|
:clear-on-select="false"
|
||||||
|
:preserve-search="true"
|
||||||
|
:placeholder="$t('Pick Accepted Status Codes...')"
|
||||||
|
:preselect-first="false"
|
||||||
|
:max-height="600"
|
||||||
|
:taggable="true"
|
||||||
|
></VueMultiselect>
|
||||||
|
|
||||||
<div class="form-text">
|
<div class="form-text">
|
||||||
{{ $t("acceptedStatusCodesDescription") }}
|
{{ $t("acceptedStatusCodesDescription") }}
|
||||||
|
@ -548,7 +601,15 @@
|
||||||
<!-- Parent Monitor -->
|
<!-- Parent Monitor -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="monitorGroupSelector" class="form-label">{{ $t("Monitor Group") }}</label>
|
<label for="monitorGroupSelector" class="form-label">{{ $t("Monitor Group") }}</label>
|
||||||
<ActionSelect id="monitorGroupSelector" v-model="monitor.parent" :action-aria-label="$t('openModalTo', 'setup a new monitor group')" :options="parentMonitorOptionsList" :disabled="sortedGroupMonitorList.length === 0 && draftGroupName == null" :icon="'plus'" :action="() => $refs.createGroupDialog.show()" />
|
<ActionSelect
|
||||||
|
id="monitorGroupSelector"
|
||||||
|
v-model="monitor.parent"
|
||||||
|
:action-aria-label="$t('openModalTo', 'setup a new monitor group')"
|
||||||
|
:options="parentMonitorOptionsList"
|
||||||
|
:disabled="sortedGroupMonitorList.length === 0 && draftGroupName == null"
|
||||||
|
:icon="'plus'"
|
||||||
|
:action="() => $refs.createGroupDialog.show()"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Description -->
|
<!-- Description -->
|
||||||
|
@ -622,7 +683,19 @@
|
||||||
<label class="form-label" for="kafkaProducerSaslMechanism">
|
<label class="form-label" for="kafkaProducerSaslMechanism">
|
||||||
{{ $t("Mechanism") }}
|
{{ $t("Mechanism") }}
|
||||||
</label>
|
</label>
|
||||||
<VueMultiselect id="kafkaProducerSaslMechanism" v-model="monitor.kafkaProducerSaslOptions.mechanism" :options="kafkaSaslMechanismOptions" :multiple="false" :clear-on-select="false" :preserve-search="false" :placeholder="$t('Pick a SASL Mechanism...')" :preselect-first="false" :max-height="500" :allow-empty="false" :taggable="false"></VueMultiselect>
|
<VueMultiselect
|
||||||
|
id="kafkaProducerSaslMechanism"
|
||||||
|
v-model="monitor.kafkaProducerSaslOptions.mechanism"
|
||||||
|
:options="kafkaSaslMechanismOptions"
|
||||||
|
:multiple="false"
|
||||||
|
:clear-on-select="false"
|
||||||
|
:preserve-search="false"
|
||||||
|
:placeholder="$t('Pick a SASL Mechanism...')"
|
||||||
|
:preselect-first="false"
|
||||||
|
:max-height="500"
|
||||||
|
:allow-empty="false"
|
||||||
|
:taggable="false"
|
||||||
|
></VueMultiselect>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="monitor.kafkaProducerSaslOptions.mechanism !== 'None'">
|
<div v-if="monitor.kafkaProducerSaslOptions.mechanism !== 'None'">
|
||||||
<div v-if="monitor.kafkaProducerSaslOptions.mechanism !== 'aws'" class="my-3">
|
<div v-if="monitor.kafkaProducerSaslOptions.mechanism !== 'aws'" class="my-3">
|
||||||
|
@ -924,7 +997,7 @@ const monitorDefaults = {
|
||||||
kafkaProducerSsl: false,
|
kafkaProducerSsl: false,
|
||||||
kafkaProducerAllowAutoTopicCreation: false,
|
kafkaProducerAllowAutoTopicCreation: false,
|
||||||
gamedigGivenPortOnly: true,
|
gamedigGivenPortOnly: true,
|
||||||
remote_browser: null,
|
remote_browser: null
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
Loading…
Add table
Reference in a new issue