feat(user): adds validation for changes before updating user profile
This commit is contained in:
9
app/static/js/update-user-info.js
Normal file
9
app/static/js/update-user-info.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(() => {
|
||||
'use strict'
|
||||
const personalInformationForm = document.querySelector('#personal-information-form');
|
||||
const personalInformationSubmitBtn = personalInformationForm.querySelector('button');
|
||||
personalInformationSubmitBtn.disabled = true;
|
||||
personalInformationForm.oninput = function (){
|
||||
personalInformationSubmitBtn.disabled = false;
|
||||
}
|
||||
})()
|
||||
Reference in New Issue
Block a user