summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/AccountModule.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/AccountModule.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/AccountModule.vue')
-rw-r--r--webapp/src/components/AccountModule.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/webapp/src/components/AccountModule.vue b/webapp/src/components/AccountModule.vue
index 8d93dbe..e9a4cce 100644
--- a/webapp/src/components/AccountModule.vue
+++ b/webapp/src/components/AccountModule.vue
@@ -9,7 +9,9 @@
<template>
<div class="account-page">
-
+ <div style="display: flex; justify-content: center; margin-top: 40px">
+ <v-btn color="primary" @click="newAlert">New Alert</v-btn>
+ </div>
</div>
</template>
@@ -19,9 +21,14 @@ export default {
name: 'AccountPage',
data () {
return {
+ testId: 0
}
},
methods: {
+ newAlert () {
+ this.$alert({ type: 'success', text: 'test ' + this.testId })
+ this.testId++
+ }
}
}
</script>