src/react/puppeteer/src/js/views/add-device-modal/ModalView.js
/**
   * Triggered when the user clicks the "add device" button.
   */
Triggered when the user clicks the "add device" button.
Triggered when the user clicks the " add device " button .
handleSubmit() {
    if(this.state.validSubmit()) {
      console.log("Valid submit!");
      this.props.actions.addDevice(this.state.name, this.state.desc, this.state.host);
    } else {
      console.log("Submission not valid");
    }
  }
handleSubmit ( ) { if ( this . state . validSubmit ( ) ) { console . log ( "Valid submit!" ) ; this . props . actions . addDevice ( this . state . name , this . state . desc , this . state . host ) ; } else { console . log ( "Submission not valid" ) ; } }
Triggered when the user clicks the "add device" button.
Triggered when the user clicks the " add device " button .