Mercurial > gemma
comparison client/src/lib/session.js @ 3685:8775bea8042a
client: layers: unset layer config on logout
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 18 Jun 2019 14:39:36 +0200 |
parents | f4bd67daaaff |
children | f0be2aec953a |
comparison
equal
deleted
inserted
replaced
3684:2babdaa32709 | 3685:8775bea8042a |
---|---|
11 * Author(s): | 11 * Author(s): |
12 * Thomas Junk <thomas.junk@intevation.de> | 12 * Thomas Junk <thomas.junk@intevation.de> |
13 */ | 13 */ |
14 | 14 |
15 import app from "@/main"; | 15 import app from "@/main"; |
16 import { unsetLayerConfigs } from "@/components/map/layers"; | |
16 | 17 |
17 const logOff = () => { | 18 const logOff = () => { |
18 app.$snotify.clear(); | 19 app.$snotify.clear(); |
19 app.$store.commit("reset"); | 20 app.$store.commit("reset"); |
20 app.$store.commit("user/clearAuth"); | 21 app.$store.commit("user/clearAuth"); |
21 app.$router.push("/login"); | 22 app.$router.push("/login"); |
23 unsetLayerConfigs(); | |
22 }; | 24 }; |
23 | 25 |
24 /** | 26 /** |
25 * Compares whether session is current | 27 * Compares whether session is current |
26 * based on the expiry information and the | 28 * based on the expiry information and the |