Skip to content

Commit

Permalink
Move Session.init to api so it's available in dist/airavata-api.js
Browse files Browse the repository at this point in the history
  • Loading branch information
machristie committed Sep 10, 2019
1 parent cfe4f77 commit 94c109a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Expand Up @@ -6,4 +6,10 @@ class Session {
}
}

export default new Session();
const session = new Session();
if (window.AiravataPortalSessionData) {
// Initialize portal session object with data provided by base.html template
session.init(window.AiravataPortalSessionData);
}

export default session;
3 changes: 0 additions & 3 deletions django_airavata/static/common/js/entry.js
Expand Up @@ -20,8 +20,5 @@ export default function entry(entryPointFunction) {
// Common Vue configuration
Vue.use(BootstrapVue);

// Initialize portal session object with data provided by base.html template
session.Session.init(window.AiravataPortalSessionData);

entryPointFunction(Vue);
}

0 comments on commit 94c109a

Please sign in to comment.