mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 12:14:41 -05:00
Added the ability to choose on which status pages maintenance information should be displayed
This commit is contained in:
parent
b4ffcc5555
commit
31b90d12a4
@ -20,6 +20,15 @@ CREATE TABLE monitor_maintenance
|
|||||||
CONSTRAINT FK_monitor FOREIGN KEY (monitor_id) REFERENCES monitor (id) ON DELETE CASCADE ON UPDATE CASCADE
|
CONSTRAINT FK_monitor FOREIGN KEY (monitor_id) REFERENCES monitor (id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE TABLE maintenance_status_page
|
||||||
|
(
|
||||||
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||||
|
status_page_id INTEGER NOT NULL,
|
||||||
|
maintenance_id INTEGER NOT NULL,
|
||||||
|
CONSTRAINT FK_maintenance FOREIGN KEY (maintenance_id) REFERENCES maintenance (id) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
|
CONSTRAINT FK_status_page FOREIGN KEY (status_page_id) REFERENCES status_page (id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
);
|
||||||
|
|
||||||
create index maintenance_user_id on maintenance (user_id);
|
create index maintenance_user_id on maintenance (user_id);
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
@ -128,7 +128,7 @@ router.get("/api/status-page/:slug", cache("5 minutes"), async (request, respons
|
|||||||
incident = incident.toPublicJSON();
|
incident = incident.toPublicJSON();
|
||||||
}
|
}
|
||||||
|
|
||||||
let maintenance = await getMaintenanceList();
|
let maintenance = await getMaintenanceList(statusPage.id);
|
||||||
|
|
||||||
// Public Group List
|
// Public Group List
|
||||||
const publicGroupList = [];
|
const publicGroupList = [];
|
||||||
@ -158,17 +158,20 @@ router.get("/api/status-page/:slug", cache("5 minutes"), async (request, respons
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Status Page - Maintenance List
|
// Status Page - Maintenance List
|
||||||
async function getMaintenanceList() {
|
async function getMaintenanceList(statusPageId) {
|
||||||
try {
|
try {
|
||||||
const publicMaintenanceList = [];
|
const publicMaintenanceList = [];
|
||||||
|
|
||||||
let maintenanceBeanList = R.convertToBeans("maintenance", await R.getAll(`
|
let maintenanceBeanList = R.convertToBeans("maintenance", await R.getAll(`
|
||||||
SELECT maintenance.*
|
SELECT m.*
|
||||||
FROM maintenance
|
FROM maintenance m
|
||||||
WHERE datetime(maintenance.start_date) <= datetime('now')
|
JOIN maintenance_status_page msp
|
||||||
AND datetime(maintenance.end_date) >= datetime('now')
|
ON msp.maintenance_id = m.id
|
||||||
ORDER BY maintenance.end_date
|
WHERE datetime(m.start_date) <= datetime('now')
|
||||||
`));
|
AND datetime(m.end_date) >= datetime('now')
|
||||||
|
AND msp.status_page_id = ?
|
||||||
|
ORDER BY m.end_date
|
||||||
|
`, [ statusPageId ]));
|
||||||
|
|
||||||
for (const bean of maintenanceBeanList) {
|
for (const bean of maintenanceBeanList) {
|
||||||
publicMaintenanceList.push(await bean.toPublicJSON());
|
publicMaintenanceList.push(await bean.toPublicJSON());
|
||||||
|
@ -802,6 +802,40 @@ try {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Add a new monitor_maintenance
|
||||||
|
socket.on("addMaintenanceStatusPage", async (maintenanceID, statusPages, callback) => {
|
||||||
|
try {
|
||||||
|
checkLogin(socket);
|
||||||
|
|
||||||
|
await R.exec("DELETE FROM maintenance_status_page WHERE maintenance_id = ?", [
|
||||||
|
maintenanceID
|
||||||
|
]);
|
||||||
|
|
||||||
|
for await (const statusPage of statusPages) {
|
||||||
|
let bean = R.dispense("maintenance_status_page");
|
||||||
|
|
||||||
|
bean.import({
|
||||||
|
status_page_id: statusPage.id,
|
||||||
|
maintenance_id: maintenanceID
|
||||||
|
});
|
||||||
|
await R.store(bean);
|
||||||
|
}
|
||||||
|
|
||||||
|
apicache.clear();
|
||||||
|
|
||||||
|
callback({
|
||||||
|
ok: true,
|
||||||
|
msg: "Added Successfully.",
|
||||||
|
});
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
callback({
|
||||||
|
ok: false,
|
||||||
|
msg: e.message,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
socket.on("getMonitorList", async (callback) => {
|
socket.on("getMonitorList", async (callback) => {
|
||||||
try {
|
try {
|
||||||
checkLogin(socket);
|
checkLogin(socket);
|
||||||
@ -906,6 +940,30 @@ try {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
socket.on("getMaintenanceStatusPage", async (maintenanceID, callback) => {
|
||||||
|
try {
|
||||||
|
checkLogin(socket);
|
||||||
|
|
||||||
|
console.log(`Get Status Pages for Maintenance: ${maintenanceID} User ID: ${socket.userID}`);
|
||||||
|
|
||||||
|
let statusPages = await R.getAll("SELECT status_page.id, status_page.title FROM maintenance_status_page msp JOIN status_page ON msp.status_page_id = status_page.id WHERE msp.maintenance_id = ? ", [
|
||||||
|
maintenanceID,
|
||||||
|
]);
|
||||||
|
|
||||||
|
callback({
|
||||||
|
ok: true,
|
||||||
|
statusPages,
|
||||||
|
});
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
callback({
|
||||||
|
ok: false,
|
||||||
|
msg: e.message,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
socket.on("getMonitorBeats", async (monitorID, period, callback) => {
|
socket.on("getMonitorBeats", async (monitorID, period, callback) => {
|
||||||
try {
|
try {
|
||||||
checkLogin(socket);
|
checkLogin(socket);
|
||||||
|
@ -15,9 +15,14 @@ export default {
|
|||||||
"Pick Affected Monitors...": "Pick Affected Monitors...",
|
"Pick Affected Monitors...": "Pick Affected Monitors...",
|
||||||
"Start of maintenance": "Start of maintenance",
|
"Start of maintenance": "Start of maintenance",
|
||||||
"Expected end of maintenance": "Expected end of maintenance",
|
"Expected end of maintenance": "Expected end of maintenance",
|
||||||
|
"Show on all pages": "Show on all status pages",
|
||||||
|
"Selected status pages": "Selected status pages",
|
||||||
|
"Select status pages...": "Select status pages...",
|
||||||
End: "End",
|
End: "End",
|
||||||
affectedMonitorsDescription: "Select monitors that are affected by current maintenance",
|
affectedMonitorsDescription: "Select monitors that are affected by current maintenance",
|
||||||
atLeastOneMonitor: "Select at least one affected monitor",
|
atLeastOneMonitor: "Select at least one affected monitor",
|
||||||
|
selectedStatusPagesDescription: "Select status pages to display maintenance info on",
|
||||||
|
atLeastOneStatusPage: "Select at least one status page",
|
||||||
maintenanceTitleExample: "Network infrastructure maintenance",
|
maintenanceTitleExample: "Network infrastructure maintenance",
|
||||||
maintenanceDescriptionExample: "Example: Network infrastructure maintenance is underway which will affect some of our services.",
|
maintenanceDescriptionExample: "Example: Network infrastructure maintenance is underway which will affect some of our services.",
|
||||||
passwordNotMatchMsg: "The repeat password does not match.",
|
passwordNotMatchMsg: "The repeat password does not match.",
|
||||||
|
@ -388,10 +388,18 @@ export default {
|
|||||||
socket.emit("addMonitorMaintenance", maintenanceID, monitors, callback);
|
socket.emit("addMonitorMaintenance", maintenanceID, monitors, callback);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
addMaintenanceStatusPage(maintenanceID, statusPages, callback) {
|
||||||
|
socket.emit("addMaintenanceStatusPage", maintenanceID, statusPages, callback);
|
||||||
|
},
|
||||||
|
|
||||||
getMonitorMaintenance(maintenanceID, callback) {
|
getMonitorMaintenance(maintenanceID, callback) {
|
||||||
socket.emit("getMonitorMaintenance", maintenanceID, callback);
|
socket.emit("getMonitorMaintenance", maintenanceID, callback);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getMaintenanceStatusPage(maintenanceID, callback) {
|
||||||
|
socket.emit("getMaintenanceStatusPage", maintenanceID, callback);
|
||||||
|
},
|
||||||
|
|
||||||
deleteMonitor(monitorID, callback) {
|
deleteMonitor(monitorID, callback) {
|
||||||
socket.emit("deleteMonitor", monitorID, callback);
|
socket.emit("deleteMonitor", monitorID, callback);
|
||||||
},
|
},
|
||||||
|
@ -54,22 +54,63 @@
|
|||||||
|
|
||||||
<!-- Start Date Time -->
|
<!-- Start Date Time -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="start_date" class="form-label">{{ $t("Start of maintenance") }} ({{ $root.timezone }})</label>
|
<label for="start_date" class="form-label">{{ $t("Start of maintenance") }}
|
||||||
|
({{ $root.timezone }})</label>
|
||||||
<input
|
<input
|
||||||
id="start_date" v-model="maintenance.start_date" :type="'datetime-local'"
|
id="start_date" v-model="maintenance.start_date" :type="'datetime-local'"
|
||||||
class="form-control" :class="{'darkCalendar': dark }" required
|
class="form-control" :class="{'dark-calendar': dark }" required
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- End Date Time -->
|
<!-- End Date Time -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="end_date" class="form-label">{{ $t("Expected end of maintenance") }} ({{ $root.timezone }})</label>
|
<label for="end_date" class="form-label">{{ $t("Expected end of maintenance") }}
|
||||||
|
({{ $root.timezone }})</label>
|
||||||
<input
|
<input
|
||||||
id="end_date" v-model="maintenance.end_date" :type="'datetime-local'"
|
id="end_date" v-model="maintenance.end_date" :type="'datetime-local'"
|
||||||
class="form-control" :class="{'darkCalendar': dark }" required
|
class="form-control" :class="{'dark-calendar': dark }" required
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Show on all pages -->
|
||||||
|
<div class="my-3 form-check">
|
||||||
|
<input
|
||||||
|
id="show-on-all-pages" v-model="showOnAllPages" class="form-check-input"
|
||||||
|
type="checkbox"
|
||||||
|
>
|
||||||
|
<label class="form-check-label" for="show-powered-by">{{
|
||||||
|
$t("Show on all pages")
|
||||||
|
}}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Status pages to display maintenance info on -->
|
||||||
|
<div v-if="!showOnAllPages" class="my-3">
|
||||||
|
<label for="selected_status_pages" class="form-label">{{
|
||||||
|
$t("Selected status pages")
|
||||||
|
}}</label>
|
||||||
|
|
||||||
|
<VueMultiselect
|
||||||
|
id="selected_status_pages"
|
||||||
|
v-model="selectedStatusPages"
|
||||||
|
:options="selectedStatusPagesOptions"
|
||||||
|
track-by="id"
|
||||||
|
label="name"
|
||||||
|
:multiple="true"
|
||||||
|
:allow-empty="false"
|
||||||
|
:close-on-select="false"
|
||||||
|
:clear-on-select="false"
|
||||||
|
:preserve-search="true"
|
||||||
|
:placeholder="$t('Select status pages...')"
|
||||||
|
:preselect-first="false"
|
||||||
|
:max-height="600"
|
||||||
|
:taggable="false"
|
||||||
|
></VueMultiselect>
|
||||||
|
|
||||||
|
<div class="form-text">
|
||||||
|
{{ $t("selectedStatusPagesDescription") }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="mt-5 mb-1">
|
<div class="mt-5 mb-1">
|
||||||
<button
|
<button
|
||||||
id="monitor-submit-btn" class="btn btn-primary" type="submit"
|
id="monitor-submit-btn" class="btn btn-primary" type="submit"
|
||||||
@ -104,6 +145,9 @@ export default {
|
|||||||
maintenance: {},
|
maintenance: {},
|
||||||
affectedMonitors: [],
|
affectedMonitors: [],
|
||||||
affectedMonitorsOptions: [],
|
affectedMonitorsOptions: [],
|
||||||
|
showOnAllPages: true,
|
||||||
|
selectedStatusPages: [],
|
||||||
|
selectedStatusPagesOptions: [],
|
||||||
dark: (this.$root.theme === "dark"),
|
dark: (this.$root.theme === "dark"),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -150,10 +194,18 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Object.values(this.$root.statusPageList).map(statusPage => {
|
||||||
|
this.selectedStatusPagesOptions.push({
|
||||||
|
id: statusPage.id,
|
||||||
|
name: statusPage.title
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init() {
|
||||||
this.affectedMonitors = [];
|
this.affectedMonitors = [];
|
||||||
|
this.selectedStatusPages = [];
|
||||||
|
|
||||||
if (this.isAdd) {
|
if (this.isAdd) {
|
||||||
this.maintenance = {
|
this.maintenance = {
|
||||||
@ -178,6 +230,21 @@ export default {
|
|||||||
toast.error(res.msg);
|
toast.error(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.$root.getSocket().emit("getMaintenanceStatusPage", this.$route.params.id, (res) => {
|
||||||
|
if (res.ok) {
|
||||||
|
Object.values(res.statusPages).map(statusPage => {
|
||||||
|
this.selectedStatusPages.push({
|
||||||
|
id: statusPage.id,
|
||||||
|
name: statusPage.title
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
this.showOnAllPages = Object.values(res.statusPages).length === this.selectedStatusPagesOptions.length;
|
||||||
|
} else {
|
||||||
|
toast.error(res.msg);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
toast.error(res.msg);
|
toast.error(res.msg);
|
||||||
}
|
}
|
||||||
@ -193,17 +260,24 @@ export default {
|
|||||||
return this.processing = false;
|
return this.processing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.showOnAllPages && this.selectedStatusPages.length === 0) {
|
||||||
|
toast.error(this.$t("atLeastOneStatusPage"));
|
||||||
|
return this.processing = false;
|
||||||
|
}
|
||||||
|
|
||||||
this.maintenance.start_date = this.$root.toUTC(this.maintenance.start_date);
|
this.maintenance.start_date = this.$root.toUTC(this.maintenance.start_date);
|
||||||
this.maintenance.end_date = this.$root.toUTC(this.maintenance.end_date);
|
this.maintenance.end_date = this.$root.toUTC(this.maintenance.end_date);
|
||||||
|
|
||||||
if (this.isAdd) {
|
if (this.isAdd) {
|
||||||
this.$root.addMaintenance(this.maintenance, async (res) => {
|
this.$root.addMaintenance(this.maintenance, async (res) => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
await this.addMonitorMaintenance(res.maintenanceID, () => {
|
await this.addMonitorMaintenance(res.maintenanceID, async () => {
|
||||||
toast.success(res.msg);
|
await this.addMaintenanceStatusPage(res.maintenanceID, () => {
|
||||||
this.processing = false;
|
toast.success(res.msg);
|
||||||
this.$root.getMaintenanceList();
|
this.processing = false;
|
||||||
this.$router.push("/dashboard/maintenance/" + res.maintenanceID);
|
this.$root.getMaintenanceList();
|
||||||
|
this.$router.push("/dashboard/maintenance/" + res.maintenanceID);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
toast.error(res.msg);
|
toast.error(res.msg);
|
||||||
@ -214,10 +288,12 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$root.getSocket().emit("editMaintenance", this.maintenance, async (res) => {
|
this.$root.getSocket().emit("editMaintenance", this.maintenance, async (res) => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
await this.addMonitorMaintenance(res.maintenanceID, () => {
|
await this.addMonitorMaintenance(res.maintenanceID, async () => {
|
||||||
this.processing = false;
|
await this.addMaintenanceStatusPage(res.maintenanceID, () => {
|
||||||
this.$root.toastRes(res);
|
this.processing = false;
|
||||||
this.init();
|
this.$root.toastRes(res);
|
||||||
|
this.init();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
@ -238,6 +314,18 @@ export default {
|
|||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async addMaintenanceStatusPage(maintenanceID, callback) {
|
||||||
|
await this.$root.addMaintenanceStatusPage(maintenanceID, (this.showOnAllPages) ? this.selectedStatusPagesOptions : this.selectedStatusPages, async (res) => {
|
||||||
|
if (!res.ok) {
|
||||||
|
toast.error(res.msg);
|
||||||
|
} else {
|
||||||
|
this.$root.getMaintenanceList();
|
||||||
|
}
|
||||||
|
|
||||||
|
callback();
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@ -251,7 +339,7 @@ textarea {
|
|||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkCalendar::-webkit-calendar-picker-indicator {
|
.dark-calendar::-webkit-calendar-picker-indicator {
|
||||||
filter: invert(1);
|
filter: invert(1);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<span>{{ $t("End") }}: {{ $root.datetimeMaintenance(maintenance.end_date) }}</span>
|
<span>{{ $t("End") }}: {{ $root.datetimeMaintenance(maintenance.end_date) }}</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="functions" style="margin-top: 10px">
|
<div class="functions" style="margin-top: 10px;">
|
||||||
<router-link :to=" '/editMaintenance/' + maintenance.id " class="btn btn-secondary">
|
<router-link :to=" '/editMaintenance/' + maintenance.id " class="btn btn-secondary">
|
||||||
<font-awesome-icon icon="edit" /> {{ $t("Edit") }}
|
<font-awesome-icon icon="edit" /> {{ $t("Edit") }}
|
||||||
</router-link>
|
</router-link>
|
||||||
@ -17,14 +17,21 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label for="description" class="form-label" style="margin-top: 20px">{{ $t("Description") }}</label>
|
<label for="description" class="form-label" style="margin-top: 20px;">{{ $t("Description") }}</label>
|
||||||
<textarea id="description" v-model="maintenance.description" class="form-control" disabled></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>
|
<label for="affected_monitors" class="form-label" style="margin-top: 20px;">{{ $t("Affected Monitors") }}</label>
|
||||||
<br>
|
<br>
|
||||||
<button v-for="monitor in affectedMonitors" :key="monitor.id" 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 }}
|
{{ monitor }}
|
||||||
</button>
|
</button>
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<label for="selected_status_pages" class="form-label" style="margin-top: 20px;">{{ $t("Selected status pages") }}</label>
|
||||||
|
<br>
|
||||||
|
<button v-for="statusPage in selectedStatusPages" :key="statusPage.id" class="btn btn-monitor" style="margin: 5px; cursor: auto; color: white; font-weight: bold;">
|
||||||
|
{{ statusPage }}
|
||||||
|
</button>
|
||||||
|
|
||||||
<Confirm ref="confirmDelete" btn-style="btn-danger" :yes-text="$t('Yes')" :no-text="$t('No')" @yes="deleteMaintenance">
|
<Confirm ref="confirmDelete" btn-style="btn-danger" :yes-text="$t('Yes')" :no-text="$t('No')" @yes="deleteMaintenance">
|
||||||
{{ $t("deleteMaintenanceMsg") }}
|
{{ $t("deleteMaintenanceMsg") }}
|
||||||
@ -45,6 +52,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
affectedMonitors: [],
|
affectedMonitors: [],
|
||||||
|
selectedStatusPages: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -65,6 +73,14 @@ export default {
|
|||||||
toast.error(res.msg);
|
toast.error(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.$root.getSocket().emit("getMaintenanceStatusPage", this.$route.params.id, (res) => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.selectedStatusPages = Object.values(res.statusPages).map(statusPage => statusPage.title);
|
||||||
|
} else {
|
||||||
|
toast.error(res.msg);
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteDialog() {
|
deleteDialog() {
|
||||||
|
@ -247,7 +247,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else-if="isMaintenance">
|
<div v-else-if="isMaintenance">
|
||||||
<font-awesome-icon icon="wrench" class="statusMaintenance" />
|
<font-awesome-icon icon="wrench" class="status-maintenance" />
|
||||||
{{ $t("Maintenance") }}
|
{{ $t("Maintenance") }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -595,7 +595,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.incident = res.data.incident;
|
this.incident = res.data.incident;
|
||||||
this.maintenance = res.data.maintenance;
|
this.maintenance = res.data.maintenance || [];
|
||||||
this.$root.publicGroupList = res.data.publicGroupList;
|
this.$root.publicGroupList = res.data.publicGroupList;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -956,7 +956,7 @@ footer {
|
|||||||
background-color: #0d1117;
|
background-color: #0d1117;
|
||||||
}
|
}
|
||||||
|
|
||||||
.statusMaintenance {
|
.status-maintenance {
|
||||||
color: $maintenance;
|
color: $maintenance;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user