mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Following Artonge suggestion
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
This commit is contained in:
parent
1f67183fe3
commit
461fa9a1da
1 changed files with 2 additions and 3 deletions
|
|
@ -1172,9 +1172,8 @@ const Dialogs = {
|
|||
// Check if the showHidden input field exist and if it exist follow it
|
||||
// Otherwise just show the hidden files
|
||||
const showHiddenInput = document.getElementById('showHiddenFiles')
|
||||
const showHidden = showHiddenInput === null || showHiddenInput.value === "1"
|
||||
if (!showHidden) {
|
||||
files = files.filter(function(file) {
|
||||
if (showHiddenInput?.value !== "1") {
|
||||
files = files.filter(function (file) {
|
||||
return !file.name.startsWith('.')
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue