Skip to content

Commit

Permalink
bugfix 1312 (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushchatur authored Aug 24, 2021
1 parent d576e09 commit a7856cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/dashboard/app/views/files/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,13 @@ $('#new-file-btn').on("click", () => {
inputLabel: 'Filename',
showCancelButton: true,
inputValidator: (value) => {
if (! value || value.includes("/")) {
if (! value ) {
// TODO: validate filenames against listing
return 'Provide a non-empty filename.'
}
else if (value.includes("/")) {
// TODO: validate filenames against listing
return 'Provide a filenamethat does not have / in it'
return 'Illegal character (/) not allowed in filename.'
}
}
})
Expand Down

0 comments on commit a7856cb

Please sign in to comment.