This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/* xeslint-disable */
|
||||
import decode from "jwt-decode";
|
||||
import initialize from "./initialize";
|
||||
import notifypoll from "./notifypoll";
|
||||
|
||||
export function processLogin(authResponse, loggedInWithKnownPassword) {
|
||||
return new Promise(async function(resolve, reject) {
|
||||
@@ -82,12 +83,15 @@ export function processLogin(authResponse, loggedInWithKnownPassword) {
|
||||
reject(err);
|
||||
}
|
||||
|
||||
//start notification polling
|
||||
notifypoll.startPolling();
|
||||
resolve();
|
||||
//-------------------------------------------------
|
||||
});
|
||||
}
|
||||
|
||||
export function processLogout() {
|
||||
notifypoll.stopPolling();
|
||||
if (window.$gz.store.state.authenticated) {
|
||||
window.$gz.store.commit(
|
||||
"logItem",
|
||||
|
||||
5
ayanova/src/api/notifypoll.js
Normal file
5
ayanova/src/api/notifypoll.js
Normal file
@@ -0,0 +1,5 @@
|
||||
/* xeslint-disable */
|
||||
|
||||
let _timerId = null;
|
||||
|
||||
export default { startPolling() {}, stopPolling() {} };
|
||||
Reference in New Issue
Block a user