Skip to content

Commit caecd2e

Browse files
authored
Merge pull request #189 from codeitcodes/dev
2 parents 3024d0b + 0235952 commit caecd2e

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

filebrowser.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,6 +2566,20 @@ function toggleSidebar(open) {
25662566
}
25672567

25682568

2569+
function deleteModFileInHTML(sha) {
2570+
2571+
const fileEl = fileWrapper.querySelector('.file.modified[sha="'+ sha +'"]');
2572+
2573+
if (fileEl) {
2574+
2575+
deleteModFile(sha);
2576+
fileEl.classList.remove('modified');
2577+
2578+
}
2579+
2580+
}
2581+
2582+
25692583
// when scrolled editor, save new scroll position
25702584

25712585
let editorScrollTimeout;

git/gitauth.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ window.onload = async () => {
114114
// get git token from Github
115115
await getGithubToken(gitCode);
116116

117+
// clear modified repos
118+
modifiedRepos = {};
119+
updateModReposLS();
120+
117121
if (messageEl.textContent === 'Logging in...') {
118122
hideMessage();
119123
}
@@ -194,6 +198,10 @@ window.onload = async () => {
194198
// get git token from Github
195199
await getGithubToken(gitCode);
196200

201+
// clear modified repos
202+
modifiedRepos = {};
203+
updateModReposLS();
204+
197205
hideMessage();
198206

199207
}

worker/client-channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
// update worker name when updating worker
7-
const WORKER_NAME = 'codeit-worker-v550';
7+
const WORKER_NAME = 'codeit-worker-v551';
88

99

1010
// internal paths

0 commit comments

Comments
 (0)