Skip to content
Snippets Groups Projects
Commit 537ea31f authored by Marnuri Nitish -'s avatar Marnuri Nitish -
Browse files

Add color change in disable button

parent e40137de
Loading
......@@ -28,6 +28,7 @@ function toggleUserEnabled(userId, enable) {
function updateUserRole(userId){
const roleSelect = document.getElementById('roleDdl');
debugger
const selectedValue = roleSelect.value;
const url = `/admin/edit/${userId}/role`;
......@@ -53,3 +54,14 @@ function updateUserRole(userId){
alert('Error occurred while updating user role.');
});
}
function disableColorChange(){
var actionBtn = document.querySelectorAll("#btn-enable-disable");
actionBtn.forEach(e =>{
if(e.innerText.toLowerCase().includes('disable')){
e.style.backgroundColor='#E5E4E6';
e.style.color='#09090B';
}
});
}
disableColorChange();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment