mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-09 22:13:12 +08:00
Moved entityInUpdate to app state. It applies for apps, categories and bookmarks
This commit is contained in:
@@ -36,3 +36,8 @@ export interface SortAppsAction {
|
||||
type: ActionType.sortApps;
|
||||
payload: string;
|
||||
}
|
||||
|
||||
export interface SetEditAppAction {
|
||||
type: ActionType.setEditApp;
|
||||
payload: App | null;
|
||||
}
|
||||
|
||||
@@ -56,3 +56,13 @@ export interface ReorderCategoriesAction {
|
||||
type: ActionType.reorderCategories;
|
||||
payload: Category[];
|
||||
}
|
||||
|
||||
export interface SetEditCategoryAction {
|
||||
type: ActionType.setEditCategory;
|
||||
payload: Category | null;
|
||||
}
|
||||
|
||||
export interface SetEditBookmarkAction {
|
||||
type: ActionType.setEditBookmark;
|
||||
payload: Bookmark | null;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ import {
|
||||
UpdateAppAction,
|
||||
ReorderAppsAction,
|
||||
SortAppsAction,
|
||||
SetEditAppAction,
|
||||
} from './app';
|
||||
|
||||
import {
|
||||
@@ -37,6 +38,8 @@ import {
|
||||
AddBookmarkAction,
|
||||
DeleteBookmarkAction,
|
||||
UpdateBookmarkAction,
|
||||
SetEditCategoryAction,
|
||||
SetEditBookmarkAction,
|
||||
} from './bookmark';
|
||||
|
||||
import {
|
||||
@@ -67,6 +70,7 @@ export type Action =
|
||||
| UpdateAppAction
|
||||
| ReorderAppsAction
|
||||
| SortAppsAction
|
||||
| SetEditAppAction
|
||||
// Categories
|
||||
| GetCategoriesAction<any>
|
||||
| AddCategoryAction
|
||||
@@ -75,10 +79,12 @@ export type Action =
|
||||
| UpdateCategoryAction
|
||||
| SortCategoriesAction
|
||||
| ReorderCategoriesAction
|
||||
| SetEditCategoryAction
|
||||
// Bookmarks
|
||||
| AddBookmarkAction
|
||||
| DeleteBookmarkAction
|
||||
| UpdateBookmarkAction
|
||||
| SetEditBookmarkAction
|
||||
// Auth
|
||||
| LoginAction
|
||||
| LogoutAction
|
||||
|
||||
Reference in New Issue
Block a user