WakeOnLAN icon indicating copy to clipboard operation
WakeOnLAN copied to clipboard

MAC address requires colons

Open mr-brunes opened this issue 6 years ago • 8 comments

I struggled with trying to add a new host and the OK button stubbornly remained greyed out, until I found that it was requiring me to have colons between the MAC address octets. Can this strict requirement be removed as it'd make copy and pasting in addresses easier? For example Windows uses dashes as separators and these don't work either.

mr-brunes avatar Apr 17 '19 10:04 mr-brunes

Hi, I'm looking at that function, it does allow colons, dashes, or MAC addresses with just a simple 12 character string. I tested it with all three options. Perhaps there was another field you did not have filled in that was keeping the OK button greyed out? Maybe FQDN or IP address?

basildane avatar Apr 18 '19 11:04 basildane

image Still greyed out for me with dashes.

mr-brunes avatar Apr 18 '19 12:04 mr-brunes

and what happens when you move the cursor to the next field, causing it to validate the mac address?

basildane avatar Apr 18 '19 12:04 basildane

Aha just found that if I switch to another tab and move back the OK button is available.

mr-brunes avatar Apr 18 '19 12:04 mr-brunes

You don't have to switch tabs, just move to another field.

basildane avatar Apr 18 '19 12:04 basildane

Ok that works - odd how I never seemed to trigger that before!

mr-brunes avatar Apr 18 '19 12:04 mr-brunes

Yes, I don't like how that validate function works either. I'll try and clean that up when I get time.

basildane avatar Apr 18 '19 12:04 basildane

It's weird that I've not seen that type of entry validation before. Athough in hindsight it makes sense on paper, it doesn't seem to when you use it, IYSWIM. ;-) Thanks for looking anyway.

mr-brunes avatar Apr 18 '19 12:04 mr-brunes