Skip to content

Commit

Permalink
Merge pull request #968 from nextcloud-libraries/fix/stable4-reset-fi…
Browse files Browse the repository at this point in the history
…les-on-nav

[stable4] fix(FilePicker): Reset selected files if the current directory is change
  • Loading branch information
Pytal committed Sep 5, 2023
2 parents 3003a2c + 60b92c0 commit 91e90a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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

0 comments on commit 91e90a6

Please sign in to comment.