This commit is contained in:
Jackson Kearl 2021-03-24 17:51:57 -07:00
parent 1a425eacb8
commit 81ba1dae86
No known key found for this signature in database
GPG key ID: DA09A59C409FC400

View file

@ -513,21 +513,20 @@ export class GettingStartedPage extends EditorPane {
const { name, parentPath } = splitName(fullPath);
const li = document.createElement('li');
const a = document.createElement('a');
const li = $('li');
const link = $('button.button-link');
a.innerText = name;
a.title = fullPath;
a.setAttribute('aria-label', localize('welcomePage.openFolderWithPath', "Open folder {0} with path {1}", name, parentPath));
a.href = 'javascript:void(0)';
a.addEventListener('click', e => {
link.innerText = name;
link.title = fullPath;
link.setAttribute('aria-label', localize('welcomePage.openFolderWithPath', "Open folder {0} with path {1}", name, parentPath));
link.addEventListener('click', e => {
this.hostService.openWindow([windowOpenable], { forceNewWindow: e.ctrlKey || e.metaKey, remoteAuthority: recent.remoteAuthority });
e.preventDefault();
e.stopPropagation();
});
li.appendChild(a);
li.appendChild(link);
const span = document.createElement('span');
const span = $('span');
span.classList.add('path');
span.classList.add('detail');
span.innerText = parentPath;
@ -806,12 +805,14 @@ export class GettingStartedPage extends EditorPane {
slideManager.classList.add('showCategories');
this.container.querySelector('.gettingStartedSlideDetails')!.querySelectorAll('button').forEach(button => button.disabled = true);
this.container.querySelector('.gettingStartedSlideCategory')!.querySelectorAll('button').forEach(button => button.disabled = false);
this.container.querySelector('.gettingStartedSlideCategory')!.querySelectorAll('input').forEach(button => button.disabled = false);
this.container.focus();
} else {
slideManager.classList.add('showDetails');
slideManager.classList.remove('showCategories');
this.container.querySelector('.gettingStartedSlideDetails')!.querySelectorAll('button').forEach(button => button.disabled = false);
this.container.querySelector('.gettingStartedSlideCategory')!.querySelectorAll('button').forEach(button => button.disabled = true);
this.container.querySelector('.gettingStartedSlideCategory')!.querySelectorAll('input').forEach(button => button.disabled = true);
}
}
}