2021-09-17 04:07:03 -04:00
|
|
|
<template>
|
|
|
|
<div class="mb-3">
|
2023-02-28 10:47:35 -05:00
|
|
|
<label for="lunasea-notification-target" class="form-label">{{ $t("Target") }}<span style="color: red;"><sup>*</sup></span></label>
|
2023-02-08 15:08:25 -05:00
|
|
|
<div class="form-text">
|
|
|
|
<p>
|
2023-02-28 10:47:35 -05:00
|
|
|
<select id="lunasea-notification-target" v-model="$parent.notification.lunaseaTarget" class="form-select" required>
|
2023-03-04 09:17:20 -05:00
|
|
|
<option value="device">{{ $t("Device") }}</option>
|
|
|
|
<option value="user">{{ $t("User") }}</option>
|
2023-02-08 15:08:25 -05:00
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</div>
|
2023-02-28 10:47:35 -05:00
|
|
|
<div v-if="$parent.notification.lunaseaTarget === 'device'">
|
|
|
|
<label for="lunasea-device" class="form-label">{{ $t("Device ID") }}<span style="color: red;"><sup>*</sup></span></label>
|
|
|
|
<input id="lunasea-device" v-model="$parent.notification.lunaseaDevice" type="text" class="form-control">
|
|
|
|
</div>
|
|
|
|
<div v-if="$parent.notification.lunaseaTarget === 'user'">
|
|
|
|
<label for="lunasea-device" class="form-label">{{ $t("User ID") }}<span style="color: red;"><sup>*</sup></span></label>
|
|
|
|
<input id="lunasea-device" v-model="$parent.notification.lunaseaUserID" type="text" class="form-control">
|
2021-09-17 04:07:03 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
2023-02-28 10:47:35 -05:00
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
|
|
|
export default {
|
|
|
|
mounted() {
|
|
|
|
if (typeof this.$parent.notification.lunaseaTarget === "undefined") {
|
|
|
|
this.$parent.notification.lunaseaTarget = "device";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
</script>
|