export default {
    pushNotification: (state,notification) => {
        notification.id = Math.floor(Math.random() * 10000);
        state.notifications.push(notification);
    },

    removeNotification: (state,notificationId) => {
       
        _.remove(state.notifications, function(notification) {
           
            return notificationId == notification.id;
          });
       
    }
}
