Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 9fbda5a

Browse files
committed
cleanup
1 parent 83fc729 commit 9fbda5a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/resources/assets/js/script.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var manager = new Vue({
2525
$('#file_loader').show()
2626
this.searchFor = ''
2727
this.showFilesOfType('all')
28-
this.currentFilterName = null
28+
this.showBy = null
2929

3030
if (folders != '/') {
3131
var folder_location = '/' + folders.join('/')
@@ -247,10 +247,12 @@ var manager = new Vue({
247247
}
248248
if (val == 'all') {
249249
this.filterdList = []
250+
this.currentFilterName = null
250251
} else {
251252
this.filterdList = this.files.items.filter((item) => {
252253
return this.fileTypeIs(item, val)
253254
})
255+
this.currentFilterName = val
254256
}
255257

256258
if (!this.isBulkSelecting()) {
@@ -261,7 +263,6 @@ var manager = new Vue({
261263
this.updateSearchCount()
262264
}
263265

264-
this.currentFilterName = val
265266
},
266267
filterDir(dir) {
267268
// dont show dirs that have similarity with selected item(s)
@@ -407,9 +408,6 @@ var manager = new Vue({
407408
allFiles(newVal, oldVal) {
408409
if (newVal.length < 1) {
409410
$('#no_files').fadeIn()
410-
if (this.currentFilterName == 'all') {
411-
this.currentFilterName = null
412-
}
413411
} else {
414412
$('#no_files').hide()
415413
}

0 commit comments

Comments
 (0)