refac
This commit is contained in:
@@ -172,6 +172,9 @@
|
|||||||
|
|
||||||
if (terminal && terminal.url !== prevTerminalUrl) {
|
if (terminal && terminal.url !== prevTerminalUrl) {
|
||||||
prevTerminalUrl = terminal.url;
|
prevTerminalUrl = terminal.url;
|
||||||
|
loading = true;
|
||||||
|
error = null;
|
||||||
|
entries = [];
|
||||||
(async () => {
|
(async () => {
|
||||||
// Discover server features (terminal enabled/disabled)
|
// Discover server features (terminal enabled/disabled)
|
||||||
const config = await getTerminalConfig(terminal.url, terminal.key);
|
const config = await getTerminalConfig(terminal.url, terminal.key);
|
||||||
@@ -531,6 +534,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!handledDisplayFile) {
|
if (!handledDisplayFile) {
|
||||||
|
loading = true;
|
||||||
if (savedPath === '/') {
|
if (savedPath === '/') {
|
||||||
const rawCwd = await getCwd(terminal.url, terminal.key);
|
const rawCwd = await getCwd(terminal.url, terminal.key);
|
||||||
const cwd = rawCwd ? normalizePath(rawCwd) : null;
|
const cwd = rawCwd ? normalizePath(rawCwd) : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user