Added user rank changes to admin page.
This commit is contained in:
parent
064109556c
commit
8a4a21cff0
13 changed files with 276 additions and 30 deletions
|
|
@ -25,6 +25,13 @@ class canopyUXUtils{
|
|||
constructor(){
|
||||
}
|
||||
|
||||
async displayResponseError(body){
|
||||
const errors = body.errors;
|
||||
errors.forEach((err)=>{
|
||||
window.alert(`ERROR: ${err.msg} \nTYPE: ${err.type} \nDATE: ${err.date}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
static clickDragger = class{
|
||||
constructor(handle, element, leftHandle = true){
|
||||
|
|
@ -117,13 +124,7 @@ class canopyAjaxUtils{
|
|||
|
||||
constructor(){
|
||||
|
||||
}
|
||||
|
||||
//Profile
|
||||
async displayResponseError(body){
|
||||
const err = body.msg;
|
||||
window.alert(`ERROR:\n${err}`);
|
||||
}
|
||||
}
|
||||
|
||||
async register(user, pass, passConfirm, email){
|
||||
var response = await fetch(`/api/account/register`,{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue