Compare commits

..

1 Commits

Author SHA1 Message Date
fa5d9daf4b feat(browser-extension): add extension update banner 2024-10-15 15:54:25 +02:00
2 changed files with 6 additions and 4 deletions

View File

@ -116,9 +116,11 @@ async function handleContentLoaded() {
reasonInputElement?.addEventListener('input', handleInputChange); reasonInputElement?.addEventListener('input', handleInputChange);
reasonInputElement?.addEventListener('keydown', handleInputKeyDown); reasonInputElement?.addEventListener('keydown', handleInputKeyDown);
const reportButtonElement = document.getElementById('report-button'); if (!state.updateAvailable) {
reportButtonElement?.addEventListener('click', handleReportClick); const reportButtonElement = document.getElementById('report-button');
reportButtonElement?.removeAttribute('disabled'); reportButtonElement?.addEventListener('click', handleReportClick);
reportButtonElement?.removeAttribute('disabled');
}
const urlInputElement = document.getElementById('report-input-url'); const urlInputElement = document.getElementById('report-input-url');
urlInputElement?.addEventListener('input', handleInputChange); urlInputElement?.addEventListener('input', handleInputChange);

View File

@ -107,7 +107,7 @@ main > .banner {
} }
& #issue-banner-url, & #issue-banner-url,
#update-banner-url { & #update-banner-url {
color: inherit; color: inherit;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;