File tree 1 file changed +9
-6
lines changed
ui/arduino/views/components
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -104,15 +104,18 @@ function generateFileList(source) {
104
104
}
105
105
return 0
106
106
} )
107
+ const parentNavigationDots = html `< div class ="item "
108
+ onclick =${ ( ) => emit ( `navigate-${ source } -parent` ) }
109
+ style ="cursor: pointer"
110
+ >
111
+ ..
112
+ </ div > `
113
+
107
114
const list = html `
108
115
< div class ="file-list ">
109
116
< div class ="list ">
110
- < div class ="item "
111
- onclick =${ ( ) => emit ( `navigate-${ source } -parent` ) }
112
- style ="cursor: pointer"
113
- >
114
- ..
115
- </ div >
117
+ ${ source === 'disk' && state . diskNavigationPath != '/' ? parentNavigationDots : '' }
118
+ ${ source === 'board' && state . boardNavigationPath != '/' ? parentNavigationDots : '' }
116
119
${ state . creatingFile == source ? newFileItem : null }
117
120
${ state . creatingFolder == source ? newFolderItem : null }
118
121
${ files . map ( FileItem ) }
You can’t perform that action at this time.
0 commit comments