summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJannik Schönartz2019-02-23 21:10:16 +0100
committerJannik Schönartz2019-02-23 21:10:16 +0100
commite54d62ff5d578ef20934f702690dc6d2df26c563 (patch)
tree0a9c23d33e81203eab0ccf62d3c120ae23aa25a9 /webapp
parent[webapp/alerts] Fix position to be attached to the topbar & fix overflow (diff)
downloadbas-e54d62ff5d578ef20934f702690dc6d2df26c563.tar.gz
bas-e54d62ff5d578ef20934f702690dc6d2df26c563.tar.xz
bas-e54d62ff5d578ef20934f702690dc6d2df26c563.zip
[webapp/alerts] Remove unnecessary code which produced vue warnings
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/components/DashboardPage.vue4
-rw-r--r--webapp/src/components/NotificationsAlerts.vue3
2 files changed, 3 insertions, 4 deletions
diff --git a/webapp/src/components/DashboardPage.vue b/webapp/src/components/DashboardPage.vue
index 716b8f6..2659d13 100644
--- a/webapp/src/components/DashboardPage.vue
+++ b/webapp/src/components/DashboardPage.vue
@@ -66,9 +66,9 @@
<v-spacer></v-spacer>
<v-btn v-if="devMode" icon @click="$store.commit('saveSetting', { name: 'locale', value: settings.locale === 'en' ? 'de' : 'en' })"><v-icon>language</v-icon></v-btn>
<v-btn v-if="devMode" icon @click="$store.commit('saveSetting', { name: 'dark', value: !settings.dark })"><v-icon>invert_colors</v-icon></v-btn>
- <notifications-alerts style="margin-right: 20px" attachToElement="topbar"></notifications-alerts>
+ <notifications-alerts style="margin-right: 20px"></notifications-alerts>
<v-toolbar-items>
- <v-menu offset-y attach="topbar">
+ <v-menu offset-y attach>
<v-btn class="user-button" flat slot="activator">
<v-icon left>account_circle</v-icon>{{ userFullName }}
</v-btn>
diff --git a/webapp/src/components/NotificationsAlerts.vue b/webapp/src/components/NotificationsAlerts.vue
index 8e5bea6..58dddab 100644
--- a/webapp/src/components/NotificationsAlerts.vue
+++ b/webapp/src/components/NotificationsAlerts.vue
@@ -17,7 +17,7 @@
<template>
<div>
- <v-menu v-model="menu" offset-y left :close-on-content-click="false" :nudge-bottom="10" content-class="notifications" attach="attachToElement">
+ <v-menu v-model="menu" offset-y left :close-on-content-click="false" :nudge-bottom="10" content-class="notifications" attach>
<v-btn icon slot="activator">
<v-badge :value="!menu && newAlertCount" color="red darken-3" bottom>
<span slot="badge">{{newAlertCount}}</span>
@@ -63,7 +63,6 @@ import { mapState, mapMutations } from 'vuex'
export default {
name: 'NotificationsAlerts',
- props: ['attachToElement'],
data () {
return {
menu: false