Massimiliano Assante 2015-06-11 12:48:32 +00:00
parent dfe1a74134
commit 2c87afa118
3 changed files with 9 additions and 6 deletions

View File

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" output="target/invite-friends-vre-1.0.0-SNAPSHOT/WEB-INF/classes" path="src/main/java"> <classpathentry kind="src" output="target/invite-friends-vre-1.0.1-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<attributes> <attributes>
<attribute name="optional" value="true"/> <attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="src" output="target/invite-friends-vre-1.0.0-SNAPSHOT/WEB-INF/classes" path="target/generated-sources/gwt"> <classpathentry kind="src" output="target/invite-friends-vre-1.0.1-SNAPSHOT/WEB-INF/classes" path="target/generated-sources/gwt">
<attributes> <attributes>
<attribute name="optional" value="true"/> <attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry excluding="**" kind="src" output="target/invite-friends-vre-1.0.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources"> <classpathentry excluding="**" kind="src" output="target/invite-friends-vre-1.0.1-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
@ -39,5 +39,5 @@
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="output" path="target/invite-friends-vre-1.0.0-SNAPSHOT/WEB-INF/classes"/> <classpathentry kind="output" path="target/invite-friends-vre-1.0.1-SNAPSHOT/WEB-INF/classes"/>
</classpath> </classpath>

View File

@ -13,7 +13,7 @@
<groupId>org.gcube.portlets.user</groupId> <groupId>org.gcube.portlets.user</groupId>
<artifactId>invite-friends-vre</artifactId> <artifactId>invite-friends-vre</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<version>1.0.0-SNAPSHOT</version> <version>1.0.1-SNAPSHOT</version>
<name>Invite Friends to VRE</name> <name>Invite Friends to VRE</name>
<scm> <scm>
<connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/${project.artifactId}</connection> <connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/${project.artifactId}</connection>

View File

@ -86,11 +86,14 @@ public class FormViewImpl extends Composite implements FormView, Editor<FormView
sendInvite.click(); sendInvite.click();
} }
}); });
sendInvite.setEnabled(true);
} }
@UiHandler("openModal") @UiHandler("openModal")
void onUserClick(ClickEvent event) { void onUserClick(ClickEvent event) {
if (!delegate.onSendClick()) { if (!delegate.onSendClick()) {
sendInvite.setEnabled(true);
feedback.setText("We will send the invitation email to: "+email.getText() + " and put you in cc, we'll never email your contacts without your say so."); feedback.setText("We will send the invitation email to: "+email.getText() + " and put you in cc, we'll never email your contacts without your say so.");
name.setText(""); name.setText("");
modalWindow.show(); modalWindow.show();
@ -118,7 +121,7 @@ public class FormViewImpl extends Composite implements FormView, Editor<FormView
public void onSuccess(Boolean result) { public void onSuccess(Boolean result) {
feedback.setText("Thanks for inviting, we sent the email correctly."); feedback.setText("Thanks for inviting, we sent the email correctly.");
feedbackGroup.setType(ControlGroupType.SUCCESS); feedbackGroup.setType(ControlGroupType.SUCCESS);
sendInvite.removeFromParent(); sendInvite.setEnabled(false);
cancelInvite.setText("Close"); cancelInvite.setText("Close");
email.setText(""); email.setText("");
} }