Files
habitica/website/client/components/snackbars/notifications.vue
Alys a88cdaf1fc Revert "Move notification snackbars when resting bar is shown (#10177)" (#10203)
This reverts commit 64e86bad91
because the console was showing errors like this:

[Vue warn]: Error in render: "TypeError: this.user is null"
found in
---> <App> at website/client/app.vue
       <Root>
2018-03-31 15:15:13 +10:00

31 lines
574 B
Vue

<template lang="pug">
.notifications
div(v-for='notification in notifications', :key='notification.uuid')
notification(:notification='notification')
</template>
<style lang="scss" scoped>
.notifications {
position: fixed;
right: 10px;
top: 65px;
width: 350px;
z-index: 1041; // 1041 is above modal backgrounds
}
</style>
<script>
import notification from './notification';
export default {
components: {
notification,
},
computed: {
notifications () {
return this.$store.state.notificationStore;
},
},
};
</script>