File tree 1 file changed +1
-7
lines changed
ui/arduino/views/components 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,7 @@ function generateFileList(source) {
81
81
state . itemActionMenu = null
82
82
emit ( 'render' )
83
83
}
84
- // let allowTransfer = false
85
- // if (source === 'disk') {
86
- // return canUpload(isConnected, selectedFiles)
87
- // else {
88
- // return canDownload(isConnected, selectedFiles)
89
- // }
84
+
90
85
const allowTransfer = source === 'disk' ? canUpload ( { isConnected, selectedFiles} ) : canDownload ( { isConnected, selectedFiles} )
91
86
const allowEdit = canEdit ( { selectedFiles} )
92
87
const allowRename = selectedFiles . length === 1
@@ -192,7 +187,6 @@ function generateFileList(source) {
192
187
}
193
188
}
194
189
195
- // XXX: Use `source` to filter an array of files with a `source` as proprety
196
190
const files = state [ `${ source } Files` ] . sort ( ( a , b ) => {
197
191
const nameA = a . fileName . toUpperCase ( )
198
192
const nameB = b . fileName . toUpperCase ( )
You can’t perform that action at this time.
0 commit comments