Skip to content

Commit

Permalink
Merge pull request #35227 from nextcloud/bugfix/35152/fix-toggle-grid…
Browse files Browse the repository at this point in the history
…-file-picker

Limit toggle grid view button scope
  • Loading branch information
szaimen authored Nov 17, 2022
2 parents dceb562 + 9a948a6 commit beba3d0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/src/OC/dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ const Dialogs = {
'aria-label',
isGridView ? t('files', 'Show grid view') : t('files', 'Show list view'),
)
$('.list-container').toggleClass('view-grid', !isGridView)
this.$filePicker.find('.list-container').toggleClass('view-grid', !isGridView)
},
_getFilePickerTemplate: function() {
var defer = $.Deferred()
Expand Down Expand Up @@ -1169,7 +1169,7 @@ const Dialogs = {
var files = await getFolderContents('/')
this.$filePicker.data('path', '/')
}

self.filelist = files
if (filter && filter.length > 0 && filter.indexOf('*') === -1) {
files = files.filter(function(file) {
Expand Down
4 changes: 2 additions & 2 deletions dist/core-login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-login.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-main.js.map

Large diffs are not rendered by default.

0 comments on commit beba3d0

Please sign in to comment.