Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove legacy #dir element in files list #33373

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

PVince81
Copy link
Member

@PVince81 PVince81 commented Jul 27, 2022

Removed legacy "#dir" input element in the DOM.

Apps should use OCA.Files.App.currentFileList or
OCA.Sharing.PublicApp.fileList and call getCurrentDirectory() to
retrieve the current directory and changeDirectory() to change it.

Reasons

  • accessibility tools are unhappy about duplicate ids in the code.
  • this is a really really old (OC <= 5) and dirty way for managing state

Affected apps from the release bundle

Todos

Tests

  • TEST: manually tested file list page refresh with root dir
  • TEST: manually tested file list page refresh with non-default dir
  • TEST: manually tested public link page refresh with root dir
  • TEST: manually tested public link page refresh with non-default dir

Removed legacy "#dir" input element in the DOM.

Apps should use OCA.Files.App.currentFileList or
OCA.Sharing.PublicApp.fileList and call getCurrentDirectory() to
retrieve the current directory and changeDirectory() to change it.

Signed-off-by: Vincent Petry <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants