Skip to content

Remove legacy #dir element in files list#33373

Merged
PVince81 merged 1 commit intomasterfrom
techdebt/noid/remove-legacy-dir
Jul 27, 2022
Merged

Remove legacy #dir element in files list#33373
PVince81 merged 1 commit intomasterfrom
techdebt/noid/remove-legacy-dir

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 <vincent@nextcloud.com>
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