Skip to content
Snippets Groups Projects
Commit f2ddb6c1 authored by Sandro Lutz's avatar Sandro Lutz Committed by scmoritz
Browse files

Disable RFID form if value has not changed

parent 26423b64
No related branches found
No related tags found
1 merge request!25Complete profile page
......@@ -112,8 +112,7 @@ class rfidForm {
value: this.rfid,
oninput: (e) => {
this.rfid = e.target.value;
this.valid = /^\d{6}$/g.test(this.rfid);
log(`rfid valid: ${this.valid}`);
this.valid = /^\d{6}$/g.test(this.rfid) && this.rfid !== user.get().rfid;
},
}),
m('button', buttonArgs, 'save'),
......
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