summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLouis <6653109+artonge@users.noreply.github.com>2023-04-20 13:06:44 +0200
committerGitHub <noreply@github.com>2023-04-20 13:06:44 +0200
commitc909e926b232623694f1d3a77cf214fe30f8b97e (patch)
treebfe6b2b3bf2cd6a45955d25fdcaa15a7ae0ed748 /core
parentc0e3e7f7224ba04927cf063196a7fd1f45e0c5fc (diff)
parentdedbabb5586aaa3daf51760ce58c2479c709cf92 (diff)
downloadnextcloud-server-c909e926b232623694f1d3a77cf214fe30f8b97e.tar.gz
nextcloud-server-c909e926b232623694f1d3a77cf214fe30f8b97e.zip
Merge pull request #37597 from Jerome-Herbinet/patch-20
Fix : Hides hidden files and folder in modal (beginning with a dot)
Diffstat (limited to 'core')
-rw-r--r--core/css/styles.scss2
-rw-r--r--core/src/OC/dialogs.js5
2 files changed, 3 insertions, 4 deletions
diff --git a/core/css/styles.scss b/core/css/styles.scss
index c581bae7325..7a881297488 100644
--- a/core/css/styles.scss
+++ b/core/css/styles.scss
@@ -803,7 +803,7 @@ code {
}
tr:last-child td {
border-bottom: none;
- }
+ }
.filename {
overflow: hidden;
white-space: nowrap;
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index 50a2b6f2c8a..bfb32fd671e 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -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('.')
})
}