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
|
LEAVE: 'Leave', // TODO translate
|
||||||
SCHEDULER: 'Scheduler', // TODO translate
|
SCHEDULER: 'Scheduler', // TODO translate
|
||||||
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // 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
|
TIME: 'Time', // TODO translate
|
||||||
TIMER: 'Timer', // TODO translate
|
TIMER: 'Timer', // TODO translate
|
||||||
|
|||||||
@@ -311,7 +311,6 @@ const en: Translation = {
|
|||||||
LEAVE: 'Leave',
|
LEAVE: 'Leave',
|
||||||
SCHEDULER: 'Scheduler',
|
SCHEDULER: 'Scheduler',
|
||||||
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP',
|
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',
|
SCHEDULE: 'Schedule',
|
||||||
TIME: 'Time',
|
TIME: 'Time',
|
||||||
TIMER: 'Timer',
|
TIMER: 'Timer',
|
||||||
|
|||||||
@@ -311,7 +311,6 @@ const fr: Translation = {
|
|||||||
LEAVE: 'Leave', // TODO translate
|
LEAVE: 'Leave', // TODO translate
|
||||||
SCHEDULER: 'Scheduler', // TODO translate
|
SCHEDULER: 'Scheduler', // TODO translate
|
||||||
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // 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
|
TIME: 'Time', // TODO translate
|
||||||
TIMER: 'Timer', // TODO translate
|
TIMER: 'Timer', // TODO translate
|
||||||
|
|||||||
@@ -311,7 +311,6 @@ const nl: Translation = {
|
|||||||
LEAVE: 'Leave', // TODO translate
|
LEAVE: 'Leave', // TODO translate
|
||||||
SCHEDULER: 'Scheduler', // TODO translate
|
SCHEDULER: 'Scheduler', // TODO translate
|
||||||
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // 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
|
TIME: 'Time', // TODO translate
|
||||||
TIMER: 'Timer', // TODO translate
|
TIMER: 'Timer', // TODO translate
|
||||||
|
|||||||
@@ -311,7 +311,6 @@ const no: Translation = {
|
|||||||
LEAVE: 'Leave', // TODO translate
|
LEAVE: 'Leave', // TODO translate
|
||||||
SCHEDULER: 'Scheduler', // TODO translate
|
SCHEDULER: 'Scheduler', // TODO translate
|
||||||
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // 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
|
TIME: 'Time', // TODO translate
|
||||||
TIMER: 'Timer', // TODO translate
|
TIMER: 'Timer', // TODO translate
|
||||||
|
|||||||
@@ -311,7 +311,6 @@ const pl: BaseTranslation = {
|
|||||||
LEAVE: 'Leave', // TODO translate
|
LEAVE: 'Leave', // TODO translate
|
||||||
SCHEDULER: 'Scheduler', // TODO translate
|
SCHEDULER: 'Scheduler', // TODO translate
|
||||||
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // 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
|
SCHEDULE: 'Schedule', // TODO translate SCHEDULE: 'Schedule', // TODO translate
|
||||||
TIME: 'Time', // TODO translate
|
TIME: 'Time', // TODO translate
|
||||||
TIMER: 'Timer', // TODO translate
|
TIMER: 'Timer', // TODO translate
|
||||||
|
|||||||
@@ -311,7 +311,6 @@ const sv: Translation = {
|
|||||||
LEAVE: 'Leave', // TODO translate
|
LEAVE: 'Leave', // TODO translate
|
||||||
SCHEDULER: 'Scheduler', // TODO translate
|
SCHEDULER: 'Scheduler', // TODO translate
|
||||||
SCHEDULER_HELP_1: 'Add custom scheduled commands to automate EMS-ESP', // 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
|
TIME: 'Time', // TODO translate
|
||||||
TIMER: 'Timer', // TODO translate
|
TIMER: 'Timer', // TODO translate
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ import AddIcon from '@mui/icons-material/Add';
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
ValidatedTextField,
|
ValidatedTextField,
|
||||||
MessageBox,
|
|
||||||
ButtonRow,
|
ButtonRow,
|
||||||
FormLoader,
|
FormLoader,
|
||||||
BlockFormControlLabel,
|
BlockFormControlLabel,
|
||||||
@@ -243,7 +242,7 @@ const SettingsScheduler: FC = () => {
|
|||||||
.filter((si) => !si.deleted)
|
.filter((si) => !si.deleted)
|
||||||
.map((condensed_si) => {
|
.map((condensed_si) => {
|
||||||
return {
|
return {
|
||||||
id: condensed_si.id, // will be ignored
|
id: condensed_si.id,
|
||||||
active: condensed_si.active,
|
active: condensed_si.active,
|
||||||
flags: condensed_si.flags,
|
flags: condensed_si.flags,
|
||||||
time: condensed_si.time,
|
time: condensed_si.time,
|
||||||
@@ -335,7 +334,10 @@ const SettingsScheduler: FC = () => {
|
|||||||
|
|
||||||
const updateScheduleItem = () => {
|
const updateScheduleItem = () => {
|
||||||
if (scheduleItem) {
|
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);
|
setSchedule(new_schedule);
|
||||||
setScheduleItem(undefined);
|
setScheduleItem(undefined);
|
||||||
}
|
}
|
||||||
@@ -564,7 +566,6 @@ const SettingsScheduler: FC = () => {
|
|||||||
<Box mb={2} color="warning.main">
|
<Box mb={2} color="warning.main">
|
||||||
<Typography variant="body2">{LL.SCHEDULER_HELP_1()}</Typography>
|
<Typography variant="body2">{LL.SCHEDULER_HELP_1()}</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<MessageBox level="info" message={LL.SCHEDULER_HELP_2()} mb={2} mt={1} />
|
|
||||||
{renderSchedule()}
|
{renderSchedule()}
|
||||||
{renderEditSchedule()}
|
{renderEditSchedule()}
|
||||||
<Box display="flex" flexWrap="wrap">
|
<Box display="flex" flexWrap="wrap">
|
||||||
|
|||||||
Reference in New Issue
Block a user