Post Web Assets v2 upgrade UI fixes and improvements #114
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user