croud-layout
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "croud-layout", | ||
"main": "src/plugin.js", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A Vue.js project", | ||
@@ -6,0 +6,0 @@ "author": "Brock <brock.reece@croud.co.uk>", |
@@ -32,2 +32,5 @@ import Vue from 'vue' | ||
}, | ||
UPDATE_ROOT(state) { | ||
state.root = jwtDecode(localStorage.getItem('root')) | ||
}, | ||
STOP_LOADING(state) { | ||
@@ -53,2 +56,5 @@ state.loading = false | ||
}, | ||
updateRoot: (context) => { | ||
context.commit('UPDATE_ROOT') | ||
}, | ||
updateJWT: (context) => { | ||
@@ -72,3 +78,3 @@ context.commit('UPDATE_JWT') | ||
if (!context.getters.root.sub || context.getters.root.sub === context.getters.jwt.sub) { | ||
if (context.getters.root.sub === context.getters.jwt.sub) { | ||
context.dispatch('updateUserSwitches', response.body.data.user_switches.data) | ||
@@ -75,0 +81,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12696859
132520