There are two validity checks: one is on the front end, and the other is on the 
server.

The front end code:

  def setVoteLink(event)
    @votelink = event.target.value
    self.checkValidity()
  end

I cannot find the self.checkValidity code. 

What I think we should do is to put these validity checks into the front end:

# verify that the link refers to lists.apache.org message on the project list
  if not @votelink=~ /.*lists\.apache\.org.*/
    _error "Please link to a message via lists.apache.org"
  end
  if not @votelink=~ /.*#{pmc.mail_list}(\.incubator)?\.apache\.org.*/
    _error "Please link to the [RESULT][VOTE] message sent to the private list."
  end

With the validity checks on the front end I can highlight the invalid form 
field in red instead of having an error message in another part of the form.

But where can I put this code? I think it's a Vue thing that needs to be 
modified.

Craig L Russell
Secretary, Apache Software Foundation
c...@apache.org http://db.apache.org/jdo

Reply via email to