Skip to content

Commit f3b0b3d

Browse files
authored
Update filebrowser.js
1 parent f12bd69 commit f3b0b3d

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

filebrowser.js

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ function createNewRepoInHTML() {
15011501
});
15021502

15031503

1504-
async function pushNewRepoInHTML() {
1504+
function pushNewRepoInHTML() {
15051505

15061506
if (repoEl.classList.contains('focused')) {
15071507

@@ -1550,16 +1550,6 @@ function createNewRepoInHTML() {
15501550
repoEl.querySelector('.name').textContent = repoName;
15511551

15521552

1553-
// start loading
1554-
startLoading();
1555-
1556-
// push repo asynchronously
1557-
const newSha = await git.createRepo(repoName, true);
1558-
1559-
// stop loading
1560-
stopLoading();
1561-
1562-
15631553
// open new repository
15641554

15651555
// change location
@@ -1574,17 +1564,12 @@ function createNewRepoInHTML() {
15741564

15751565
addRepoToModRepos(repoObj);
15761566

1577-
// show intro screen
1578-
fileWrapper.innerHTML = fileIntroScreen;
1579-
1580-
// show repo name in sidebar
1581-
sidebarLogo.innerText = repoName;
1582-
1583-
// change header options
1584-
header.classList.remove('out-of-repo');
1585-
1586-
// hide search button
1587-
searchButton.classList.add('hidden');
1567+
// render sidebar
1568+
renderSidebarHTML();
1569+
1570+
1571+
// push repo asynchronously
1572+
const newSha = git.createRepo(repoName, true);
15881573

15891574
}
15901575

0 commit comments

Comments
 (0)