yarn: update dependencies, prepare for Plug'n'Play
This commit is contained in:
parent
3a3caee715
commit
98c54cba3a
18 changed files with 2619 additions and 2137 deletions
|
@ -35,7 +35,7 @@ interface Values {
|
|||
const schema = object().shape({
|
||||
action: string().required().oneOf([ 'command', 'power', 'backup' ]),
|
||||
payload: string().when('action', {
|
||||
is: v => v !== 'backup',
|
||||
is: (v: string) => v !== 'backup',
|
||||
then: string().required('A task payload must be provided.'),
|
||||
otherwise: string(),
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue