Skip to content

Commit

Permalink
fix(FilePicker): Reset selected files if the current directory is cha…
Browse files Browse the repository at this point in the history
…nged

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Aug 28, 2023
1 parent 30ad3db commit c187e5e
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:249
#: lib/components/FilePicker/FilePicker.vue:251
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:235
#: lib/components/FilePicker/FilePicker.vue:237
msgid "Files and folders you mark as favorite will show up here."
msgstr ""

#: lib/components/FilePicker/FilePicker.vue:233
#: lib/components/FilePicker/FilePicker.vue:235
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:231
#: lib/components/FilePicker/FilePicker.vue:233
msgid "Upload some content or sync with your devices!"
msgstr ""
2 changes: 2 additions & 0 deletions lib/components/FilePicker/FilePicker.vue
Expand Up @@ -190,6 +190,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 c187e5e

Please sign in to comment.