ing
This commit is contained in:
parent
272284e425
commit
dc1d6d4d61
|
@ -1,11 +1,13 @@
|
||||||
import { Action } from '@ngrx/store';
|
import { Action } from '@ngrx/store';
|
||||||
|
|
||||||
|
export const NOTIFICATION_ACTION_TYPE_PREFIX = '@@NOTIFICATION';
|
||||||
|
|
||||||
export interface NotificationAction extends Action {
|
export interface NotificationAction extends Action {
|
||||||
payload?: any;
|
payload?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function notificationActionEnum(method: string): string {
|
export function notificationActionEnum(method: string): string {
|
||||||
return `[@@NOTIFICATION] ${method}`;
|
return `[${NOTIFICATION_ACTION_TYPE_PREFIX}] ${method}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function notificationAction(method: string, params: any): Action {
|
export function notificationAction(method: string, params: any): Action {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user