2021-09-17 01:07:03 -07:00
|
|
|
<template>
|
|
|
|
<div class="mb-3">
|
2021-09-20 22:02:41 -07:00
|
|
|
<label for="gotify-application-token" class="form-label">{{ $t("Application Token") }}</label>
|
2022-10-13 04:28:02 -07:00
|
|
|
<HiddenInput id="gotify-application-token" v-model="$parent.notification.gotifyapplicationToken" :required="true" autocomplete="new-password"></HiddenInput>
|
2021-09-17 01:07:03 -07:00
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
2021-09-20 22:02:41 -07:00
|
|
|
<label for="gotify-server-url" class="form-label">{{ $t("Server URL") }}</label>
|
2023-07-31 08:59:12 -07:00
|
|
|
<input id="gotify-server-url" v-model="$parent.notification.gotifyserverurl" type="text" class="form-control" required>
|
2021-09-17 01:07:03 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mb-3">
|
2021-09-20 22:02:41 -07:00
|
|
|
<label for="gotify-priority" class="form-label">{{ $t("Priority") }}</label>
|
2021-09-17 01:07:03 -07:00
|
|
|
<input id="gotify-priority" v-model="$parent.notification.gotifyPriority" type="number" class="form-control" required min="0" max="10" step="1">
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import HiddenInput from "../HiddenInput.vue";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
HiddenInput,
|
|
|
|
},
|
2021-09-19 03:05:22 -07:00
|
|
|
mounted() {
|
|
|
|
if (typeof this.$parent.notification.gotifyPriority === "undefined") {
|
|
|
|
this.$parent.notification.gotifyPriority = 8;
|
|
|
|
}
|
|
|
|
},
|
2022-04-13 09:30:32 -07:00
|
|
|
};
|
2021-09-17 01:07:03 -07:00
|
|
|
</script>
|