X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/762c232937e6825839ada7d682542601aaffbd90..ae7d952a97542c2cfc12f6f41ab0de93af278919:/src/store/project/project-action.ts diff --git a/src/store/project/project-action.ts b/src/store/project/project-action.ts index 7c91cc55..a58edd3c 100644 --- a/src/store/project/project-action.ts +++ b/src/store/project/project-action.ts @@ -1,15 +1,18 @@ // Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 +import { default as unionize, ofType, UnionOf } from "unionize"; import { Project } from "../../models/project"; -import { default as unionize, ofType, UnionOf } from "unionize"; const actions = unionize({ CREATE_PROJECT: ofType(), REMOVE_PROJECT: ofType(), - TOP_PROJECTS_REQUEST: {}, - TOP_PROJECTS_SUCCESS: ofType() + PROJECTS_REQUEST: ofType(), + PROJECTS_SUCCESS: ofType<{ projects: Project[], parentItemId?: string }>(), + TOGGLE_PROJECT_TREE_ITEM_OPEN: ofType(), + TOGGLE_PROJECT_TREE_ITEM_ACTIVE: ofType(), + RESET_PROJECT_TREE_ACTIVITY: ofType(), }, { tag: 'type', value: 'payload'