mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
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>
31 lines
574 B
Vue
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>
|