Skip to content

Commit 94c9189

Browse files
committed
Update filebrowser.js
1 parent c531b9b commit 94c9189

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

filebrowser.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,8 +1568,12 @@ sidebarTitle.addEventListener('click', (e) => {
15681568

15691569
sidebar.classList.add('learn');
15701570

1571-
if (Object.values(modifiedFiles).length === 0) {
1571+
// if there are no modified files
1572+
// and no pending promises
1573+
if (Object.values(modifiedFiles).length === 0
1574+
&& !pendingPromise && !repoPromise) {
15721575

1576+
// enable logout
15731577
learnWrapper.classList.add('logout-enabled');
15741578

15751579
} else {

0 commit comments

Comments
 (0)