mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-13 17:14:21 -08:00
improve notification component, no double template
This commit is contained in:
parent
5ca0dd628d
commit
f7562e00c1
|
@ -37,7 +37,7 @@
|
||||||
<input id="name" v-model="notification.name" type="text" class="form-control" required>
|
<input id="name" v-model="notification.name" type="text" class="form-control" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Telegram></Telegram>
|
<Telegram v-if="notification.type === 'telegram'"></Telegram>
|
||||||
|
|
||||||
<!-- TODO: Convert all into vue components, but not an easy task. -->
|
<!-- TODO: Convert all into vue components, but not an easy task. -->
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<template>
|
<template>
|
||||||
<template v-if="$parent.notification.type === name">
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="telegram-bot-token" class="form-label">Bot Token</label>
|
<label for="telegram-bot-token" class="form-label">Bot Token</label>
|
||||||
<HiddenInput id="telegram-bot-token" v-model="$parent.notification.telegramBotToken" :required="true" autocomplete="one-time-code"></HiddenInput>
|
<HiddenInput id="telegram-bot-token" v-model="$parent.notification.telegramBotToken" :required="true" autocomplete="one-time-code"></HiddenInput>
|
||||||
|
@ -37,7 +36,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import HiddenInput from "../HiddenInput.vue";
|
import HiddenInput from "../HiddenInput.vue";
|
||||||
|
|
Loading…
Reference in a new issue