Skip to content

fix(files): Sort list ASC by default - #41485

Merged
nickvergessen merged 2 commits into
masterfrom
bugfix/noid/sort-asc-by-default
Nov 16, 2023
Merged

fix(files): Sort list ASC by default#41485
nickvergessen merged 2 commits into
masterfrom
bugfix/noid/sort-asc-by-default

Conversation

@nickvergessen

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

  • After installing the Nextcloud (or deleting the preference entry) the files list was sorted DESC by accident. The problem is that undefined did not match asc is it toggled the order.

Checklist

@@ -47,7 +47,7 @@ export default Vue.extend({
*/
isAscSorting(): boolean {
const sortingDirection = this.getConfig(this.currentView.id)?.sorting_direction

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or like this

Suggested change
constsortingDirection=this.getConfig(this.currentView.id)?.sorting_direction
constsortingDirection=this.getConfig(this.currentView.id)?.sorting_direction??'asc'

Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen

Copy link
Copy Markdown
MemberAuthor

Conflicting files
dist/files-main.js
dist/files-main.js.map

Rebasing

@nickvergessen
nickvergessenforce-pushed the bugfix/noid/sort-asc-by-default branch from 3e46e6d to 9a9cdceCompareNovember 16, 2023 05:20
@nickvergessen
nickvergessen merged commit 04c3fea into masterNov 16, 2023
@nickvergessen
nickvergessen deleted the bugfix/noid/sort-asc-by-default branch November 16, 2023 09:35
@blizzzblizzz mentioned this pull request Nov 16, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@nickvergessen@susnux@artonge@ShGKme