Browse Source

Ensures no repo state is only visible when needed

main
Eric Amodio 2 years ago
parent
commit
772cd60c05
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/webviews/apps/home/home.ts

+ 10
- 0
src/webviews/apps/home/home.ts View File

@ -248,9 +248,19 @@ export class HomeApp extends App {
let $el = document.getElementById('no-repo');
$el?.setAttribute('aria-hidden', value);
if (extensionEnabled) {
$el?.setAttribute('hidden', value);
} else {
$el?.removeAttribute('hidden');
}
$el = document.getElementById('no-repo-alert');
$el?.setAttribute('aria-hidden', value);
if (extensionEnabled) {
$el?.setAttribute('hidden', value);
} else {
$el?.removeAttribute('hidden');
}
}
private updateLayout() {

||||||
x
 
000:0
Loading…
Cancel
Save