summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/LoginPage.vue
diff options
context:
space:
mode:
authorUdo Walter2018-11-26 20:12:31 +0100
committerUdo Walter2018-11-26 20:12:31 +0100
commit82648439b945cc5d049886f7e79c2f0dd9d14ff9 (patch)
treeebeb33ba47bef73306d004b230726ddad5d16bfa /webapp/src/components/LoginPage.vue
parent[webapp] small bugfix (diff)
downloadbas-82648439b945cc5d049886f7e79c2f0dd9d14ff9.tar.gz
bas-82648439b945cc5d049886f7e79c2f0dd9d14ff9.tar.xz
bas-82648439b945cc5d049886f7e79c2f0dd9d14ff9.zip
[webapp+server] Add first implementation of a websocket to alert webclients of events
and to synchronize notification across multiple webapp instances of the same user
Diffstat (limited to 'webapp/src/components/LoginPage.vue')
-rw-r--r--webapp/src/components/LoginPage.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/src/components/LoginPage.vue b/webapp/src/components/LoginPage.vue
index aeaf66e..40b08ee 100644
--- a/webapp/src/components/LoginPage.vue
+++ b/webapp/src/components/LoginPage.vue
@@ -48,6 +48,7 @@
</template>
<script>
+
export default {
name: 'LoginPage',
data () {
@@ -83,6 +84,7 @@ export default {
const nextRoute = this.$store.state.loginRedirect
if (nextRoute) this.$router.replace(nextRoute)
else this.$router.replace({ name: 'dashboard' })
+ this.$socket.open()
})
.catch(error => {
if (error.response.data.status === 'USER_NOTFOUND') {