mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
remove ntp message
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user