mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
22aa0139ae
Needed: copyright societies in backend
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
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.contractAgreementListNotifications = null;
|
|
this.editionNotifications = null;
|
|
this.pieceNotifications = null;
|
|
this.bindActions(NotificationActions);
|
|
}
|
|
|
|
onUpdatePieceListNotifications(res) {
|
|
this.pieceListNotifications = res.notifications;
|
|
}
|
|
|
|
onUpdatePieceNotifications(res) {
|
|
this.pieceNotifications = res.notification;
|
|
}
|
|
|
|
onUpdateEditionListNotifications(res) {
|
|
this.editionListNotifications = res.notifications;
|
|
}
|
|
|
|
onUpdateEditionNotifications(res) {
|
|
this.editionNotifications = res.notification;
|
|
}
|
|
|
|
onUpdateContractAgreementListNotifications(res) {
|
|
this.contractAgreementListNotifications = res.notifications;
|
|
}
|
|
|
|
}
|
|
|
|
export default alt.createStore(NotificationStore, 'NotificationStore');
|