We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b0be8 commit e570349Copy full SHA for e570349
supervisor/shared/web_workflow/static/directory.js
@@ -92,6 +92,7 @@ async function refresh_list() {
92
if (f.directory) {
93
icon = "📁";
94
} else if(f.name.endsWith(".txt") ||
95
+ f.name.endsWith(".env") ||
96
f.name.endsWith(".py") ||
97
f.name.endsWith(".js") ||
98
f.name.endsWith(".json")) {
@@ -211,6 +212,9 @@ async function del(e) {
211
212
async function rename(e) {
213
let fn = new URL(e.target.value);
214
var new_fn = prompt("Rename to ", fn.pathname.substr(3));
215
+ if (new_fn === null) {
216
+ return;
217
+ }
218
let new_uri = new URL("/fs" + new_fn, fn);
219
const response = await fetch(e.target.value,
220
{
0 commit comments