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

[stable4] fix(FilePicker): Reset selected files if the current directory is change #968

Merged
merged 1 commit into from Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions l10n/messages.pot
Expand Up @@ -38,7 +38,7 @@ msgstr ""
msgid "Copy to {target}"
msgstr ""

#: lib/components/FilePicker/FilePicker.vue:250
#: lib/components/FilePicker/FilePicker.vue:252
msgid "Could not create the new folder"
msgstr ""

Expand All @@ -51,11 +51,11 @@ msgstr ""
msgid "File name cannot be empty."
msgstr ""

#: lib/components/FilePicker/FilePicker.vue:236
#: lib/components/FilePicker/FilePicker.vue:238
msgid "Files and folders you mark as favorite will show up here."
msgstr ""

#: lib/components/FilePicker/FilePicker.vue:234
#: lib/components/FilePicker/FilePicker.vue:236
msgid "Files and folders you recently modified will show up here."
msgstr ""

Expand Down Expand Up @@ -106,6 +106,6 @@ msgstr ""
msgid "Unset"
msgstr ""

#: lib/components/FilePicker/FilePicker.vue:232
#: lib/components/FilePicker/FilePicker.vue:234
msgid "Upload some content or sync with your devices!"
msgstr ""
2 changes: 2 additions & 0 deletions lib/components/FilePicker/FilePicker.vue
Expand Up @@ -191,6 +191,8 @@ const currentPath = computed({
window.sessionStorage.setItem('NC.FilePicker.LastPath', path)
}
navigatedPath.value = path
// Reset selected files
selectedFiles.value = []
},
})

Expand Down