ui(files): add pull file modal
This commit is contained in:
parent
01242a805d
commit
3c2a6e1136
14 changed files with 211 additions and 42 deletions
|
@ -68,7 +68,7 @@ export default ({ className }: WithClassname) => {
|
|||
validationSchema={object().shape({
|
||||
directoryName: string()
|
||||
.required('A valid directory name must be provided.')
|
||||
.test('unique', 'Directory with that name already exists.', v => {
|
||||
.test('unique', 'File or directory with that name already exists.', v => {
|
||||
return v !== undefined &&
|
||||
data !== undefined &&
|
||||
data.filter(f => f.name.toLowerCase() === v.toLowerCase()).length < 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue