mirror of
https://github.com/plankanban/planka.git
synced 2025-12-26 09:15:01 +03:00
feat: Toggle actions details, little redesign
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Model, attr, fk } from 'redux-orm';
|
||||
import { Model, attr, fk, oneToOne } from 'redux-orm';
|
||||
|
||||
import ActionTypes from '../constants/ActionTypes';
|
||||
|
||||
@@ -15,16 +15,15 @@ export default class extends Model {
|
||||
as: 'user',
|
||||
relatedName: 'notifications',
|
||||
}),
|
||||
actionId: fk({
|
||||
to: 'Action',
|
||||
as: 'action',
|
||||
relatedName: 'notifications',
|
||||
}),
|
||||
cardId: fk({
|
||||
to: 'Card',
|
||||
as: 'card',
|
||||
relatedName: 'notifications',
|
||||
}),
|
||||
actionId: oneToOne({
|
||||
to: 'Action',
|
||||
as: 'action',
|
||||
}),
|
||||
};
|
||||
|
||||
static reducer({ type, payload }, Notification) {
|
||||
|
||||
Reference in New Issue
Block a user