|
|
|
@ -405,7 +405,7 @@ const $7e781a188206b2b3$export$d46ee33f41c7e43d = "apiUseNotAuthorized";
|
|
|
|
|
* @property {string} new_member_title - title for new user
|
|
|
|
|
*/ create(data) {
|
|
|
|
|
return new Promise((resolve, reject)=>{
|
|
|
|
|
this._request($7e781a188206b2b3$export$6010ab8005eea11c, $7e781a188206b2b3$export$2fb4d35b5b0eebb2, $7e781a188206b2b3$export$1470a914435ca933, $7e781a188206b2b3$export$e133232680a85c80, data).then((result)=>{
|
|
|
|
|
this._request($7e781a188206b2b3$export$6010ab8005eea11c, null, $7e781a188206b2b3$export$2fb4d35b5b0eebb2, $7e781a188206b2b3$export$1470a914435ca933, $7e781a188206b2b3$export$e133232680a85c80, data).then((result)=>{
|
|
|
|
|
resolve(result);
|
|
|
|
|
}).catch((err)=>{
|
|
|
|
|
reject(err);
|
|
|
|
@ -426,7 +426,7 @@ const $7e781a188206b2b3$export$d46ee33f41c7e43d = "apiUseNotAuthorized";
|
|
|
|
|
method = $7e781a188206b2b3$export$1470a914435ca933;
|
|
|
|
|
type = $7e781a188206b2b3$export$d1a86f208bdcebe5;
|
|
|
|
|
data = new FormData(form);
|
|
|
|
|
this._request(url, event, method, type, data).then((result)=>{
|
|
|
|
|
this._request(url, null, event, method, type, data).then((result)=>{
|
|
|
|
|
resolve(result);
|
|
|
|
|
}).catch((err)=>{
|
|
|
|
|
reject(err);
|
|
|
|
@ -7318,17 +7318,17 @@ class $5ec7c34d3cbf8bc6$export$2e2bcd8739ae039 {
|
|
|
|
|
mm.create(setUpForm).then((response)=>{
|
|
|
|
|
if (response.type === $995f55a4eccd256d$export$74a5c30fa9753d80) {
|
|
|
|
|
self.processing = false;
|
|
|
|
|
$5ec7c34d3cbf8bc6$var$notify.alert(response.message, false);
|
|
|
|
|
e.target.innerHTML = response.message;
|
|
|
|
|
} else {
|
|
|
|
|
self.processing = false;
|
|
|
|
|
$5ec7c34d3cbf8bc6$var$notify.alert(response.message, true);
|
|
|
|
|
e.target.innerHTML = response.message;
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
window.location = "/dashboard";
|
|
|
|
|
}, 700);
|
|
|
|
|
}
|
|
|
|
|
}).catch((err)=>{
|
|
|
|
|
self.processing = false;
|
|
|
|
|
$5ec7c34d3cbf8bc6$var$notify.alert(err, false);
|
|
|
|
|
//notify.alert(err, false);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
handleRestore(e) {
|
|
|
|
@ -7342,17 +7342,17 @@ class $5ec7c34d3cbf8bc6$export$2e2bcd8739ae039 {
|
|
|
|
|
mm.restore(form).then((response)=>{
|
|
|
|
|
if (response.type === $995f55a4eccd256d$export$f99ec790401d28da) {
|
|
|
|
|
self.processing = false;
|
|
|
|
|
$5ec7c34d3cbf8bc6$var$notify.alert(response.message, false);
|
|
|
|
|
e.target.innerHTML = response.message;
|
|
|
|
|
} else {
|
|
|
|
|
self.processing = false;
|
|
|
|
|
$5ec7c34d3cbf8bc6$var$notify.alert(response.message, true);
|
|
|
|
|
e.target.innerHTML = response.message;
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
window.location = "/dashboard";
|
|
|
|
|
}, 1500);
|
|
|
|
|
}
|
|
|
|
|
}).catch((err)=>{
|
|
|
|
|
self.processing = false;
|
|
|
|
|
$5ec7c34d3cbf8bc6$var$notify.alert(err, false);
|
|
|
|
|
e.target.innerHTML = err;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
handleReset(e) {
|
|
|
|
|