From fb0c5989ba2f24a9f7311d94e8a283a3fa4f4c9f Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 30 Nov 2016 16:12:16 +0500 Subject: Add Test Mail button to Account dialog. --- web/app/view/UserDialogController.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'web/app/view/UserDialogController.js') 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'); -- cgit v1.2.3