Update variable name

Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
Christopher Ng 2022-05-31 18:03:15 +00:00
parent f876dc6882
commit 343eab4c96
3 changed files with 4 additions and 4 deletions

View File

@ -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()

BIN
dist/core-login.js.map vendored

Binary file not shown.

BIN
dist/core-main.js.map vendored

Binary file not shown.