Migration of all files in auth to ES6 Modules

addserver
forgotpassword
forgotpasswordpin
login
selectserver
This commit is contained in:
Cameron 2020-07-09 16:20:32 +01:00
parent 1f8ce6e6f4
commit e033a748cc
6 changed files with 69 additions and 25 deletions

View file

@ -1,5 +1,6 @@
define(['globalize'], function (globalize) {
'use strict';
import globalize from 'globalize';
/* eslint-disable indent */
function processForgotPasswordResult(result) {
if ('ContactAdmin' == result.Action) {
@ -34,7 +35,7 @@ define(['globalize'], function (globalize) {
}
}
return function (view, params) {
export default function (view, params) {
function onSubmit(e) {
ApiClient.ajax({
type: 'POST',
@ -50,4 +51,5 @@ define(['globalize'], function (globalize) {
view.querySelector('form').addEventListener('submit', onSubmit);
};
});
/* eslint-enable indent */