mirror of
https://github.com/nextcloud/server.git
synced 2024-09-08 15:57:54 +02:00
Fix file picker not respecting hidden files settings
This will only respect the setting inside the file app. For other apps we will either need to do an API call or add an input field with the same idea to spare a blocking api call. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
89d109a4d9
commit
1fa58be1aa
@ -1143,6 +1143,16 @@ 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) {
|
||||
return !file.name.startsWith('.')
|
||||
})
|
||||
}
|
||||
|
||||
var Comparators = {
|
||||
name: function(fileInfo1, fileInfo2) {
|
||||
if (fileInfo1.type === 'dir' && fileInfo2.type !== 'dir') {
|
||||
|
4
dist/core-login.js
vendored
4
dist/core-login.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-login.js.map
vendored
2
dist/core-login.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/core-main.js
vendored
4
dist/core-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-main.js.map
vendored
2
dist/core-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user