Skip to content

Commit 361303d

Browse files
authored
Merge pull request #30677 from nextcloud/backport/stable21/30597
2 parents 08c6f1c + 258e016 commit 361303d

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

core/js/dist/login.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/dist/login.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/dist/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/OC/dialogs.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,16 @@ const Dialogs = {
11221122
})
11231123
}
11241124

1125+
// Check if the showHidden input field exist and if it exist follow it
1126+
// Otherwise just show the hidden files
1127+
const showHiddenInput = document.getElementById('showHiddenFiles')
1128+
const showHidden = showHiddenInput === null || showHiddenInput.value === "1"
1129+
if (!showHidden) {
1130+
files = files.filter(function(file) {
1131+
return !file.name.startsWith('.')
1132+
})
1133+
}
1134+
11251135
var Comparators = {
11261136
name: function(fileInfo1, fileInfo2) {
11271137
if (fileInfo1.type === 'dir' && fileInfo2.type !== 'dir') {

0 commit comments

Comments
 (0)