2019-01-24 20:15:10 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
2018-12-12 13:44:01 +00:00
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
<template>
|
2019-08-21 14:21:23 +01:00
|
|
|
<div id="notificationArea" class="notification-container" v-if="notifications.length > 0" >
|
2019-08-22 17:03:13 +01:00
|
|
|
<Notification v-for="notification in notifications" :notification="notification" :key="notification.id" />
|
2018-12-12 13:44:01 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2019-07-08 14:45:25 +01:00
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
import Notification from '@/components/notifications/Notification.vue';
|
2019-08-22 17:03:13 +01:00
|
|
|
import { DelayedNotification } from '@/types/DelayedNotification';
|
2018-12-12 13:44:01 +00:00
|
|
|
|
2019-07-08 14:45:25 +01:00
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
Notification,
|
2018-12-12 13:44:01 +00:00
|
|
|
}
|
2019-07-08 14:45:25 +01:00
|
|
|
})
|
2019-07-18 14:39:39 +01:00
|
|
|
export default class NotificationArea extends Vue {
|
2019-08-22 17:03:13 +01:00
|
|
|
public get notifications(): DelayedNotification[] {
|
2019-08-21 14:21:23 +01:00
|
|
|
return this.$store.state.notificationsModule.notificationQueue;
|
2019-07-18 14:39:39 +01:00
|
|
|
}
|
|
|
|
}
|
2018-12-12 13:44:01 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.notification-container {
|
2019-08-21 14:21:23 +01:00
|
|
|
width: 417px;
|
|
|
|
background-color: transparent;
|
2018-12-12 13:44:01 +00:00
|
|
|
display: flex;
|
2019-08-21 14:21:23 +01:00
|
|
|
flex-direction: column;
|
2018-12-12 13:44:01 +00:00
|
|
|
position: fixed;
|
2019-08-21 14:21:23 +01:00
|
|
|
top: 114px;
|
|
|
|
right: 17px;
|
|
|
|
align-items: flex-end;
|
2018-12-12 13:44:01 +00:00
|
|
|
justify-content: space-between;
|
2019-08-21 14:21:23 +01:00
|
|
|
border-radius: 12px;
|
2018-12-20 16:44:42 +00:00
|
|
|
z-index: 9999;
|
2019-08-21 14:21:23 +01:00
|
|
|
overflow: hidden;
|
2018-12-12 13:44:01 +00:00
|
|
|
}
|
|
|
|
</style>
|