mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-31 23:11:15 +00:00
30 lines
506 B
Vue
30 lines
506 B
Vue
|
|
<template lang="pug">
|
||
|
|
.notifications
|
||
|
|
notification(v-for='notification in notifications', :notification='notification')
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
.notifications {
|
||
|
|
position: fixed;
|
||
|
|
right: 10px;
|
||
|
|
top: 10px;
|
||
|
|
width: 350px;
|
||
|
|
z-index: 99999;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import notification from './notification';
|
||
|
|
|
||
|
|
export default {
|
||
|
|
components: {
|
||
|
|
notification,
|
||
|
|
},
|
||
|
|
computed: {
|
||
|
|
notifications () {
|
||
|
|
return this.$store.state.notificationStore;
|
||
|
|
},
|
||
|
|
},
|
||
|
|
};
|
||
|
|
</script>
|