mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-20 07:13:45 +02:00
ui(files): add pull file modal
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user