-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fallback to root if the picker folder doesn't exists #33681
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
Conversation
|
/rebase |
| } else { | ||
| self.$fileListHeader.find('[data-sort=' + self.filepicker.sortField + '] .sort-indicator').addClass('icon-triangle-s') | ||
| } | ||
| self.filepicker.filesClient.getFolderContents(dir).then(function(status, files) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was invalid, returning multiple values from a promise is invalid
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve#syntax
I couldn't fix the getFolderContents without risking breaking a lot of its usage
PVince81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
8113448 to
2f9f93c
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
2f9f93c to
4bf7781
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Please don't add the missing files if you don't plan to merge straight away 🙈
Rebasing 😬 |
4bf7781 to
4f9f98c
Compare
|
/compile amend / |
Signed-off-by: John Molakvoæ <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
4f9f98c to
96bbc1a
Compare
|
/backport to stable24 |
|
/backport to stable23 |
|
The backport to stable23 failed. Please do this backport manually. |
Working on the Photos default folder picker, I noticed that if you call the
getFilePickerBuilderwith an invalid value/folder, it just exploded without loading anything.Adding this make sure we fallback to the user root
/if the provided directory i non-existent