Post Web Assets v2 upgrade UI fixes and improvements #114

Merged
Márton Lente merged 35 commits from martonlente/extensions-website:ui/issue105 into main 2024-05-07 16:33:28 +02:00
Showing only changes of commit 4b907e6c80 - Show all commits

View File

@ -49,7 +49,7 @@
let value = e.target.value; let value = e.target.value;
let verb = 'Comment'; let verb = 'Comment';
const activitySubmitButton = document.getElementById('activity-submit'); const activitySubmitButton = document.getElementById('activity-submit');
activitySubmitButton.classList.remove('btn-success', 'btn-warning'); activitySubmitButton.classList.remove('btn-primary', 'btn-success', 'btn-warning');
// Hide or show comment form msg on change // Hide or show comment form msg on change
if (value == 'AWC') { if (value == 'AWC') {
@ -60,6 +60,8 @@
} else if (value == 'APR') { } else if (value == 'APR') {
verb = 'Approve!'; verb = 'Approve!';
activitySubmitButton.classList.add('btn-success'); activitySubmitButton.classList.add('btn-success');
} else {
activitySubmitButton.classList.add('btn-primary');
} }
activitySubmitButton.querySelector('span').textContent = verb; activitySubmitButton.querySelector('span').textContent = verb;