Fixed remaining lint errors

This commit is contained in:
Karel Krýda 2022-04-30 15:13:13 +02:00
parent f78d01d770
commit 11ef22edec
4 changed files with 4 additions and 7 deletions

View File

@ -15,7 +15,6 @@ export default {
"Pick Affected Monitors...": "Pick Affected Monitors...",
"Start of maintenance": "Start of maintenance",
"Expected end of maintenance": "Expected end of maintenance",
Start: "Start",
End: "End",
affectedMonitorsDescription: "Select monitors that are affected by current maintenance",
atLeastOneMonitor: "Select at least one affected monitor",

View File

@ -87,7 +87,6 @@
</template>
<script>
import CopyableInput from "../components/CopyableInput.vue";
import { useToast } from "vue-toastification";
import VueMultiselect from "vue-multiselect";
@ -96,7 +95,6 @@ const toast = useToast();
export default {
components: {
CopyableInput,
VueMultiselect,
},

View File

@ -18,11 +18,11 @@
</div>
<label for="description" class="form-label" style="margin-top: 20px">{{ $t("Description") }}</label>
<textarea id="description" class="form-control" disabled>{{ maintenance.description }}</textarea>
<textarea id="description" v-model="maintenance.description" class="form-control" disabled></textarea>
<label for="affected_monitors" class="form-label" style="margin-top: 20px">{{ $t("Affected Monitors") }}</label>
<br>
<button v-for="monitor in affectedMonitors" class="btn btn-monitor" style="margin: 5px; cursor: auto; color: white; font-weight: bold">
<button v-for="monitor in affectedMonitors" :key="monitor.id" class="btn btn-monitor" style="margin: 5px; cursor: auto; color: white; font-weight: bold">
{{ monitor }}
</button>

View File

@ -198,7 +198,7 @@
<!-- Maintenance -->
<template v-if="maintenance.length !== 0">
<div
v-for="maintenanceItem in maintenance" class="shadow-box alert mb-4 p-4 maintenance" role="alert"
v-for="maintenanceItem in maintenance" :key="maintenanceItem.id" class="shadow-box alert mb-4 p-4 maintenance" role="alert"
:class="maintenanceClass"
>
<h4 class="alert-heading" v-text="maintenanceItem.title" />