feat(xo-web/backup): add warning regarding DST (#4056)

Fixes #4042
This commit is contained in:
Enishowk 2019-04-03 11:42:24 +02:00 committed by Pierre Donias
parent 7f1ab529ae
commit f900a5ef4f
3 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
### Enhancements ### Enhancements
- [Settings/remotes] Expose mount options field for SMB [#4063](https://github.com/vatesfr/xen-orchestra/issues/4063) (PR [#4067](https://github.com/vatesfr/xen-orchestra/pull/4067)) - [Settings/remotes] Expose mount options field for SMB [#4063](https://github.com/vatesfr/xen-orchestra/issues/4063) (PR [#4067](https://github.com/vatesfr/xen-orchestra/pull/4067))
- [Backup/Schedule] Add warning regarding DST when you add a schedule [#4042](https://github.com/vatesfr/xen-orchestra/issues/4042) (PR [#4056](https://github.com/vatesfr/xen-orchestra/pull/4056))
### Bug fixes ### Bug fixes

View File

@ -430,6 +430,8 @@ const messages = {
'This will migrate this backup to a backup NG. This operation is not reversible. Do you want to continue?', 'This will migrate this backup to a backup NG. This operation is not reversible. Do you want to continue?',
runBackupNgJobConfirm: 'Are you sure you want to run {name} ({id})?', runBackupNgJobConfirm: 'Are you sure you want to run {name} ({id})?',
cancelJobConfirm: 'Are you sure you want to cancel {name} ({id})?', cancelJobConfirm: 'Are you sure you want to cancel {name} ({id})?',
scheduleDstWarning:
'If your country participates in DST, it is advised that you avoid scheduling jobs at the time of change. e.g. 2AM to 3AM for US.',
// ------ New backup ----- // ------ New backup -----
newBackupAdvancedSettings: 'Advanced settings', newBackupAdvancedSettings: 'Advanced settings',

View File

@ -1,4 +1,5 @@
import classNames from 'classnames' import classNames from 'classnames'
import Icon from 'icon'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import React from 'react' import React from 'react'
import { createSchedule } from '@xen-orchestra/cron' import { createSchedule } from '@xen-orchestra/cron'
@ -457,6 +458,9 @@ export default class Scheduler extends Component {
return ( return (
<div className='card-block'> <div className='card-block'>
<em>
<Icon icon='info' /> {_('scheduleDstWarning')}
</em>
<Row> <Row>
<Col largeSize={6}> <Col largeSize={6}>
<TimePicker <TimePicker