Skip to content

Commit c89bf6d

Browse files
committed
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 <[email protected]>
1 parent 6572f80 commit c89bf6d

11 files changed

+266
-126
lines changed

core/src/OC/dialogs.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,16 @@ const Dialogs = {
11431143
})
11441144
}
11451145

1146+
// Check if the showHidden input field exist and if it exist follow it
1147+
// Otherwise just show the hidden files
1148+
const showHiddenInput = document.getElementById('showHiddenFiles')
1149+
const showHidden = showHiddenInput === null || showHiddenInput.value === "1"
1150+
if (!showHidden) {
1151+
files = files.filter(function(file) {
1152+
return !file.name.startsWith('.')
1153+
})
1154+
}
1155+
11461156
var Comparators = {
11471157
name: function(fileInfo1, fileInfo2) {
11481158
if (fileInfo1.type === 'dir' && fileInfo2.type !== 'dir') {

dist/core-login.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-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.

dist/core-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-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.

dist/settings-apps-settings-apps.js

Lines changed: 95 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/settings-apps-settings-apps.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.

dist/settings-users-settings-users.js

Lines changed: 64 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/settings-users-settings-users.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.

dist/user-status-modal-user-status-modal.js

Lines changed: 88 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)