diff --git a/dev/src/command/webview/ManageTemplateReposPage.ts b/dev/src/command/webview/ManageTemplateReposPage.ts index d1d4238e..c2de030b 100644 --- a/dev/src/command/webview/ManageTemplateReposPage.ts +++ b/dev/src/command/webview/ManageTemplateReposPage.ts @@ -88,14 +88,17 @@ export default function getManageReposPage(repos: ITemplateRepo[]): string { const newEnablement = toggleBtn.getAttribute("${REPO_ENABLED_ATTR}") != "true"; toggleBtn.setAttribute("${REPO_ENABLED_ATTR}", newEnablement); - let newToggleImg; + let newToggleImg, newToggleAlt; if (newEnablement) { newToggleImg = "${getStatusToggleIconSrc(true)}"; + newToggleAlt = "${getStatusToggleAlt(true)}"; } else { newToggleImg = "${getStatusToggleIconSrc(false)}"; + newToggleAlt = "${getStatusToggleAlt(false)}"; } toggleBtn.src = newToggleImg; + toggleBtn.alt = newToggleAlt; sendMsg("${ManageReposWVMessages.ENABLE_DISABLE}", { repos: [ getRepoEnablementObj(toggleBtn) ] }); } @@ -174,13 +177,16 @@ function buildRepoRow(repo: ITemplateRepo): string { } function getStatusToggleTD(repo: ITemplateRepo): string { - const alt = repo.enabled ? `Disable ${repo.description}` : `Enable ${repo.description}`; return `