vue-components/connection-list/component.js
/**
     * Adds the new connection to the array of connections and opens it if the
     * `openAfter` arg is set to `true`.
     * @param {boolean} openAfter
     *   Indicates whether or not to open the connection thereafter.
     */
Adds the new connection to the array of connections and opens it if the
`openAfter` arg is set to `true`.
@param {boolean} openAfter
Indicates whether or not to open the connection thereafter.
Adds the new connection to the array of connections and opens it if the ` openAfter ` arg is set to ` true ` . @param { boolean } openAfter Indicates whether or not to open the connection thereafter .
createConn(openAfter) {
      const connCount = this.connections.push(
        utils.validateConnection(this.currentConn, this.connections.length)
      );
      this.updateConnections(this.connections);
      if (openAfter) {
        this.openConn(connCount - 1);
      }
    }
createConn ( openAfter ) { const connCount = this . connections . push ( utils . validateConnection ( this . currentConn , this . connections . length ) ) ; this . updateConnections ( this . connections ) ; if ( openAfter ) { this . openConn ( connCount - 1 ) ; } }
Adds the new connection to the array of connections and opens it if the
 `openAfter` arg is set to `true`.
Adds the new connection to the array of connections and opens it if the ` openAfter ` arg is set to ` true ` .
// Save the new connections to the system. // Open the connection if that flag was set to true.