Revision 53f8abed src/gr/grnet/pithos/web/client/commands/CreateGroupCommand.java
b/src/gr/grnet/pithos/web/client/commands/CreateGroupCommand.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
package gr.grnet.pithos.web.client.commands; |
36 | 36 |
|
37 |
import gr.grnet.pithos.web.client.GroupCreateDialog; |
|
37 | 38 |
import gr.grnet.pithos.web.client.Pithos; |
38 | 39 |
|
39 | 40 |
import com.google.gwt.user.client.Command; |
... | ... | |
61 | 62 |
public void execute() { |
62 | 63 |
if (containerPanel != null) |
63 | 64 |
containerPanel.hide(); |
64 |
String groupname = Window.prompt("Enter group name:", ""); |
|
65 |
if (groupname != null && groupname.length() > 0) { |
|
66 |
app.addGroup(groupname); |
|
67 |
} |
|
65 |
GroupCreateDialog dlg = new GroupCreateDialog(app); |
|
66 |
dlg.center(); |
|
68 | 67 |
} |
69 | 68 |
} |
Also available in: Unified diff