aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OC
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-11-17 14:02:51 +0100
committerVincent Petry <vincent@nextcloud.com>2022-11-17 14:09:52 +0100
commit9a948a6b39ec0cc5bdbd6b440533d735555220b5 (patch)
tree9be91e2979aec142d3712c3c84d2fb97fbbc24ea /core/src/OC
parent301af07e2f4cb506512899b7b4783db8b7975ee9 (diff)
downloadnextcloud-server-9a948a6b39ec0cc5bdbd6b440533d735555220b5.tar.gz
nextcloud-server-9a948a6b39ec0cc5bdbd6b440533d735555220b5.zip
Limit toggle grid view button scope
Limit the button action scope to the file picker dialog so that it doesn't touch the file list present in the page. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r--core/src/OC/dialogs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index c29d59aaad8..3e4344ac677 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -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()
@@ -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) {