Right now when events happen there is no way to notify the user. We need to add a simple notification system where an action can dispatch an event that let's the user know what happened in the system.
What We Need To create
A Notification Banner
This should show when the action is completed.
A Simple Reusable System
We should be able to reuse this for 3 types of notifications
Success
Failure
Warning
Event Dispatch:
type : success, failure, warning (determines the icon)
title : The top heading
message : This will be the message to display to the user.
Example
EventBus.$emit('notification', {
type: 'success',
title: 'Transaction Created!',
message: 'Your transaction for $34.53 has been added.'
});
Description
Right now when events happen there is no way to notify the user. We need to add a simple notification system where an action can dispatch an event that let's the user know what happened in the system.
What We Need To create
A Notification Banner
This should show when the action is completed.![image](https://user-images.githubusercontent.com/2365103/111100878-f8c62d00-8505-11eb-8696-0330e4065e6a.png)
A Simple Reusable System
We should be able to reuse this for 3 types of notifications
Event Dispatch:
type
: success, failure, warning (determines the icon)title
: The top headingmessage
: This will be the message to display to the user.Example