remove ntp message

This commit is contained in:
Proddy
2023-02-26 15:20:18 +01:00
parent 127a20b29c
commit f0509ae333
8 changed files with 5 additions and 11 deletions

View File

@@ -311,7 +311,6 @@ const de: Translation = {
LEAVE: 'Leave', // TODO translate
SCHEDULER: 'Scheduler', // TODO translate
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // TODO translate
SCHEDULER_HELP_2: 'Note: The NTP service needs to be active if using the calendar', // TODO translate
SCHEDULE: 'Schedule', // TODO translate
TIME: 'Time', // TODO translate
TIMER: 'Timer', // TODO translate

View File

@@ -311,7 +311,6 @@ const en: Translation = {
LEAVE: 'Leave',
SCHEDULER: 'Scheduler',
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP',
SCHEDULER_HELP_2: 'Note: The NTP service needs to be active if using the calendar',
SCHEDULE: 'Schedule',
TIME: 'Time',
TIMER: 'Timer',

View File

@@ -311,7 +311,6 @@ const fr: Translation = {
LEAVE: 'Leave', // TODO translate
SCHEDULER: 'Scheduler', // TODO translate
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // TODO translate
SCHEDULER_HELP_2: 'Note: The NTP service needs to be active if using the calendar', // TODO translate
SCHEDULE: 'Schedule', // TODO translate
TIME: 'Time', // TODO translate
TIMER: 'Timer', // TODO translate

View File

@@ -311,7 +311,6 @@ const nl: Translation = {
LEAVE: 'Leave', // TODO translate
SCHEDULER: 'Scheduler', // TODO translate
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // TODO translate
SCHEDULER_HELP_2: 'Note: The NTP service needs to be active if using the calendar', // TODO translate
SCHEDULE: 'Schedule', // TODO translate
TIME: 'Time', // TODO translate
TIMER: 'Timer', // TODO translate

View File

@@ -311,7 +311,6 @@ const no: Translation = {
LEAVE: 'Leave', // TODO translate
SCHEDULER: 'Scheduler', // TODO translate
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // TODO translate
SCHEDULER_HELP_2: 'Note: The NTP service needs to be active if using the calendar', // TODO translate
SCHEDULE: 'Schedule', // TODO translate
TIME: 'Time', // TODO translate
TIMER: 'Timer', // TODO translate

View File

@@ -311,7 +311,6 @@ const pl: BaseTranslation = {
LEAVE: 'Leave', // TODO translate
SCHEDULER: 'Scheduler', // TODO translate
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // TODO translate
SCHEDULER_HELP_2: 'Note: The NTP service needs to be active if using the calendar', // TODO translate
SCHEDULE: 'Schedule', // TODO translate SCHEDULE: 'Schedule', // TODO translate
TIME: 'Time', // TODO translate
TIMER: 'Timer', // TODO translate

View File

@@ -311,7 +311,6 @@ const sv: Translation = {
LEAVE: 'Leave', // TODO translate
SCHEDULER: 'Scheduler', // TODO translate
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // TODO translate
SCHEDULER_HELP_2: 'Note: The NTP service needs to be active if using the calendar', // TODO translate
SCHEDULE: 'Schedule', // TODO translate
TIME: 'Time', // TODO translate
TIMER: 'Timer', // TODO translate

View File

@@ -33,7 +33,6 @@ import AddIcon from '@mui/icons-material/Add';
import {
ValidatedTextField,
MessageBox,
ButtonRow,
FormLoader,
BlockFormControlLabel,
@@ -243,7 +242,7 @@ const SettingsScheduler: FC = () => {
.filter((si) => !si.deleted)
.map((condensed_si) => {
return {
id: condensed_si.id, // will be ignored
id: condensed_si.id,
active: condensed_si.active,
flags: condensed_si.flags,
time: condensed_si.time,
@@ -335,7 +334,10 @@ const SettingsScheduler: FC = () => {
const updateScheduleItem = () => {
if (scheduleItem) {
const new_schedule = [...schedule.filter((si) => si.id !== scheduleItem.id), scheduleItem];
const new_schedule = [...schedule.filter((si) => si.id !== scheduleItem.id), scheduleItem].sort((a, b) =>
a.time.localeCompare(b.time)
);
setSchedule(new_schedule);
setScheduleItem(undefined);
}
@@ -564,7 +566,6 @@ const SettingsScheduler: FC = () => {
<Box mb={2} color="warning.main">
<Typography variant="body2">{LL.SCHEDULER_HELP_1()}</Typography>
</Box>
<MessageBox level="info" message={LL.SCHEDULER_HELP_2()} mb={2} mt={1} />
{renderSchedule()}
{renderEditSchedule()}
<Box display="flex" flexWrap="wrap">