diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-01 01:02:20 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-01 01:02:20 +1300 |
commit | 38b3a3e6df91b7c2135cfcca855826ce8f1b1e63 (patch) | |
tree | b093fbcf8672b6106632cd9ac841f43a1e6942b6 /web/app/view/UserDialogController.js | |
parent | 1ffe251cbc09e2199c936d68f5c1f82363436da1 (diff) | |
parent | fb0c5989ba2f24a9f7311d94e8a283a3fa4f4c9f (diff) | |
download | etbsa-traccar-web-38b3a3e6df91b7c2135cfcca855826ce8f1b1e63.tar.gz etbsa-traccar-web-38b3a3e6df91b7c2135cfcca855826ce8f1b1e63.tar.bz2 etbsa-traccar-web-38b3a3e6df91b7c2135cfcca855826ce8f1b1e63.zip |
Merge pull request #346 from Abyss777/test_mail
Add Test Mail button to Account dialog
Diffstat (limited to 'web/app/view/UserDialogController.js')
-rw-r--r-- | web/app/view/UserDialogController.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web/app/view/UserDialogController.js b/web/app/view/UserDialogController.js index 0f1c022..f07031e 100644 --- a/web/app/view/UserDialogController.js +++ b/web/app/view/UserDialogController.js @@ -42,6 +42,16 @@ Ext.define('Traccar.view.UserDialogController', { this.lookupReference('tokenField').setValue(newToken); }, + testMail: function () { + Ext.Ajax.request({ + url: 'api/users/notifications/test', + method: 'POST', + failure: function (response) { + Traccar.app.showError(response); + } + }); + }, + onSaveClick: function (button) { var dialog, record, store; dialog = button.up('window').down('form'); |