diff options
author | Khurshid Fayzullaev <khurshidfayzullaev@yahoo.com> | 2014-03-24 10:35:16 -0400 |
---|---|---|
committer | Khurshid Fayzullaev <khurshidfayzullaev@yahoo.com> | 2014-03-24 10:35:16 -0400 |
commit | 200c22998940e9eb29d52b2ea5ae48e77a53a24b (patch) | |
tree | 8c63232dbc8560aba631c5df31b014993f710b49 /src | |
parent | 4694754957f733c88e0e2f39fad6f02a42140adb (diff) | |
download | trackermap-web-200c22998940e9eb29d52b2ea5ae48e77a53a24b.tar.gz trackermap-web-200c22998940e9eb29d52b2ea5ae48e77a53a24b.tar.bz2 trackermap-web-200c22998940e9eb29d52b2ea5ae48e77a53a24b.zip |
Alert a message if admin adds an existing username
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/web/client/controller/SettingsController.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/web/client/controller/SettingsController.java b/src/org/traccar/web/client/controller/SettingsController.java index f8fcc72d..e05afb55 100644 --- a/src/org/traccar/web/client/controller/SettingsController.java +++ b/src/org/traccar/web/client/controller/SettingsController.java @@ -97,6 +97,10 @@ public class SettingsController implements DeviceView.SettingsHandler { public void onSuccess(User result) { userStore.add(result); } + @Override + public void onFailure(Throwable caught) { + new AlertMessageBox("Error", "Username is already taken").show(); + } }); } }).show(); |