@data-fair/lib-vue 1.23.3 → 1.23.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/session.js +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-vue",
3
- "version": "1.23.3",
3
+ "version": "1.23.4",
4
4
  "description": "Composables and other utilities for Vue applications in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [
package/session.js CHANGED
@@ -231,6 +231,12 @@ export async function getSession(initOptions) {
231
231
  const params = { adminMode: 'true' };
232
232
  if (state.user != null)
233
233
  params.email = state.user.email;
234
+ // preserve current active org/dep
235
+ if (state.organization) {
236
+ params.org = state.organization.id;
237
+ if (state.organization.department)
238
+ params.dep = state.organization.department;
239
+ }
234
240
  const url = loginUrl(redirect, params, true);
235
241
  goTo(url);
236
242
  }