mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 13:41:57 +02:00
27 lines
615 B
JavaScript
27 lines
615 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
import alt from '../alt';
|
|
|
|
import NotificationActions from '../actions/notification_actions';
|
|
|
|
|
|
class NotificationStore {
|
|
constructor() {
|
|
this.pieceListNotifications = {};
|
|
this.editionListNotifications = {};
|
|
this.bindActions(NotificationActions);
|
|
}
|
|
|
|
onUpdatePieceListNotifications(res) {
|
|
this.pieceListNotifications = res.notifications;
|
|
}
|
|
|
|
onUpdateEditionListNotifications(res) {
|
|
this.editionListNotifications = res.notifications;
|
|
}
|
|
|
|
}
|
|
|
|
export default alt.createStore(NotificationStore, 'NotificationStore');
|