Disable Delete button in SshPanel while SSH keys are deleted

Disable the Delete button in SshPanel after clicking on it and while
the delete requests are still being processed.

Change-Id: I63eaaaf8cbed2174fbade7f07ec233adb415bf73
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-06-07 08:32:47 +02:00
committed by Edwin Kempin
parent 882aef2721
commit 0e496f0936

View File

@@ -269,6 +269,7 @@ class SshPanel extends Composite {
if (sequenceNumbers.isEmpty()) {
updateDeleteButton();
} else {
deleteKey.setEnabled(false);
AccountApi.deleteSshKeys("self", sequenceNumbers,
new GerritCallback<VoidResult>() {
public void onSuccess(VoidResult result) {