protected void onSubmit()

in client/src/main/java/org/apache/hupa/client/ui/LoginView.java [113:129]


    protected void onSubmit(ClickEvent e) {
        System.out.println("ON sub");
        if (!usernameTextBox.getValue().isEmpty() &&
            !passwordTextBox.getValue().isEmpty()) {
            if (!settingsPopup.isShowing() &&
                    (imapServer.getValue().isEmpty()
                    || smtpServer.getValue().isEmpty()
                    || imapPort.getValue().isEmpty()
                    || smtpPort.getValue().isEmpty()
                    )) {
                       settingsPopup.showRelativeTo(setupButton);
            } else {
                setLoading(true);
                activity.doLogin();
            }
        }
    }