File tree 2 files changed +23
-3
lines changed
supervisor/shared/web_workflow/static 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 1
- <!DOCTYPE html> < html > < head > < title > </ title > < meta charset ="UTF-8 "> </ head >
2
- < script src ="/directory.js " defer =true > </ script >
3
- < body > < h1 > < a href ="/ "> < img src ="/favicon.ico "/> </ a > < span id ="path "> </ span > </ h1 > < template id ="row "> < tr > < td > </ td > < td > </ td > < td > < a > </ a > </ td > < td > </ td > < td > < button class ="delete "> 🗑️</ button > </ td > </ tr > </ template > < table > < thead > < tr > < th > Type</ th > < th > Size</ th > < th > Path</ th > < th > Modified</ th > < th > </ th > </ tr > </ thead > < tbody > </ tbody > </ table > < hr > < input type ="file " id ="files " multiple > < button type ="submit " id ="upload "> Upload</ button > < hr > +🗀 < input type ="text " id ="name "> < button type ="submit " id ="mkdir "> Create Directory</ button >
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > </ title >
5
+ < meta charset ="UTF-8 ">
6
+ < script src ="/directory.js " defer =true > </ script >
7
+ </ head >
8
+ < body >
9
+ < h1 > < a href ="/ "> < img src ="/favicon.ico "/> </ a > < span id ="path "> </ span > </ h1 >
10
+ < div id ="usbwarning " style ="display: none; "> 🛈 USB is using the storage. Only allowing reads. See < a href ="https://learn.adafruit.com/circuitpython-essentials/circuitpython-storage "> the CircuitPython Essentials: Storage guide</ a > for details.</ div >
11
+ < template id ="row "> < tr > < td > </ td > < td > </ td > < td > < a > </ a > </ td > < td > </ td > < td > < button class ="delete "> 🗑️</ button > </ td > </ tr > </ template >
12
+ < table >
13
+ < thead > < tr > < th > Type</ th > < th > Size</ th > < th > Path</ th > < th > Modified</ th > < th > </ th > </ tr > </ thead >
14
+ < tbody > </ tbody >
15
+ </ table >
16
+ < hr >
17
+ < input type ="file " id ="files " multiple > < button type ="submit " id ="upload "> Upload</ button >
18
+ < hr >
19
+ +🗀 < input type ="text " id ="name "> < button type ="submit " id ="mkdir "> Create Directory</ button >
4
20
</ body > </ html >
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ async function refresh_list() {
37
37
editable = status . headers . get ( "Access-Control-Allow-Methods" ) . includes ( "DELETE" ) ;
38
38
new_directory_name . disabled = ! editable ;
39
39
files . disabled = ! editable ;
40
+ if ( ! editable ) {
41
+ let usbwarning = document . querySelector ( "#usbwarning" ) ;
42
+ usbwarning . style . display = "block" ;
43
+ }
40
44
}
41
45
42
46
if ( window . location . path != "/fs/" ) {
You can’t perform that action at this time.
0 commit comments