Add cron app configure view

This commit is contained in:
Johannes Zellner
2025-02-22 11:13:15 +01:00
parent 97a298375a
commit 7da590ca76
2 changed files with 89 additions and 3 deletions

View File

@@ -6,9 +6,10 @@ import { useI18n } from 'vue-i18n';
const i18n = useI18n();
const t = i18n.t;
import { ref, onMounted, onUnmounted, useTemplateRef, computed } from 'vue';
import { ref, onMounted, onBeforeUnmount, useTemplateRef, computed } from 'vue';
import { Button, ButtonGroup, TabView } from 'pankow';
import Info from '../components/app/Info.vue';
import Cron from '../components/app/Cron.vue';
import Eventlog from '../components/app/Eventlog.vue';
import Updates from '../components/app/Updates.vue';
import Uninstall from '../components/app/Uninstall.vue';
@@ -135,7 +136,7 @@ onMounted(async () => {
tabView.value.open(parts[1] || 'info');
});
onUnmounted(() => {
onBeforeUnmount(() => {
if (refreshTimer) clearTimeout(refreshTimer);
});
@@ -179,7 +180,7 @@ onUnmounted(() => {
<template #graphs></template>
<template #security></template>
<template #email></template>
<template #cron></template>
<template #cron><Cron :app="app"/></template>
<template #updates><Updates :app="app"/></template>
<template #backups></template>
<template #repair></template>