aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OC
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-05-31 18:03:15 +0000
committerChristopher Ng <chrng8@gmail.com>2022-06-09 00:20:37 +0000
commit343eab4c969ebb6a2540e6a1ca5442d370bf6d39 (patch)
treec807b74022a6b727f04554b23ffcdfa226c96f34 /core/src/OC
parentf876dc68821ce6d2890aa21a9083e57ed2a0b797 (diff)
downloadnextcloud-server-343eab4c969ebb6a2540e6a1ca5442d370bf6d39.tar.gz
nextcloud-server-343eab4c969ebb6a2540e6a1ca5442d370bf6d39.zip
Update variable name
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r--core/src/OC/dialogs.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index 6f9d7accb6b..2a3e7d063e4 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -1049,15 +1049,15 @@ const Dialogs = {
})
},
_onGridviewChange: function() {
- const show = this.$showGridView.hasClass('icon-toggle-filelist')
+ const isGridView = this.$showGridView.hasClass('icon-toggle-filelist')
// only save state if user is logged in
if (OC.currentUser) {
- $.post(OC.generateUrl('/apps/files/api/v1/showgridview'), { show: !show })
+ $.post(OC.generateUrl('/apps/files/api/v1/showgridview'), { show: !isGridView })
}
this.$showGridView
.removeClass('icon-toggle-filelist icon-toggle-pictures')
- .addClass(show ? 'icon-toggle-pictures' : 'icon-toggle-filelist')
- $('.list-container').toggleClass('view-grid', !show)
+ .addClass(isGridView ? 'icon-toggle-pictures' : 'icon-toggle-filelist')
+ $('.list-container').toggleClass('view-grid', !isGridView)
},
_getFilePickerTemplate: function() {
var defer = $.Deferred()