all apparently working and cleaned up

This commit is contained in:
2020-06-10 21:40:05 +00:00
parent 0a43e53ab7
commit 3dd7e05549
9 changed files with 12 additions and 985 deletions

View File

@@ -5,8 +5,6 @@ import initialize from "./initialize";
export function processLogin(response) {
return new Promise(async function(resolve, reject) {
try {
console.log("authutil:process login TOP");
//check there is a response of some kind
if (!response) {
window.$gz.store.commit("logItem", "auth::processLogin -> no response");
@@ -65,10 +63,7 @@ export function processLogin(response) {
);
//Get global settings
console.log("authutil:calling get blobal settings");
let gsets = await window.$gz.api.get("global-biz-setting/client");
console.log("authutil:got global settings");
if (gsets.error) {
//In a form this would trigger a bunch of validation or error display code but for here and now:
//convert error to human readable string for display and popup a notification to user
@@ -83,19 +78,10 @@ export function processLogin(response) {
//or else use browser defaults
window.$gz.store.commit("setGlobalSettings", gsets.data);
}
console.log("** authutil calling test delay --->>>>");
await window.$gz.api.doDelayAsync();
console.log("** authutil back from delay continuing..");
//INITIALIZE
console.log("authutil:calling initialize");
await initialize();
} catch (err) {
console.log("authutil:error in async chain global/init");
reject(err);
}
console.log("authutil:no error resolving async chain global/init");
resolve();
//-------------------------------------------------
});