[ARVADOS-WORKBENCH2] updated: 1.1.4-383-gce07446
Git user
git at public.curoverse.com
Tue Jul 24 07:08:27 EDT 2018
Summary of changes:
.../context-menu/action-sets/favorite-action-set.ts | 1 -
src/views-components/context-menu/action-sets/project-action-set.ts | 6 +++++-
2 files changed, 5 insertions(+), 2 deletions(-)
via ce074465f93417bec660d09597aeabc75664a679 (commit)
from c2ce837bcdbe8605880059d5e0de484ae2ac9f6e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit ce074465f93417bec660d09597aeabc75664a679
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date: Tue Jul 24 13:08:24 2018 +0200
Add refreshing favorite list if top project was mark as favorite and favorite list was visible
Feature #13753
Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>
diff --git a/src/views-components/context-menu/action-sets/favorite-action-set.ts b/src/views-components/context-menu/action-sets/favorite-action-set.ts
index 807c309..58cf6cc 100644
--- a/src/views-components/context-menu/action-sets/favorite-action-set.ts
+++ b/src/views-components/context-menu/action-sets/favorite-action-set.ts
@@ -11,7 +11,6 @@ import { FAVORITE_PANEL_ID } from "../../../views/favorite-panel/favorite-panel"
export const favoriteActionSet: ContextMenuActionSet = [[{
component: ToggleFavoriteAction,
execute: (dispatch, resource) => {
- debugger;
dispatch<any>(toggleFavorite(resource)).then(() => {
dispatch<any>(dataExplorerActions.REQUEST_ITEMS({ id : FAVORITE_PANEL_ID }));
});
diff --git a/src/views-components/context-menu/action-sets/project-action-set.ts b/src/views-components/context-menu/action-sets/project-action-set.ts
index e0a5e54..efcc429 100644
--- a/src/views-components/context-menu/action-sets/project-action-set.ts
+++ b/src/views-components/context-menu/action-sets/project-action-set.ts
@@ -7,6 +7,8 @@ import { projectActions } from "../../../store/project/project-action";
import { NewProjectIcon } from "../../../components/icon/icon";
import { ToggleFavoriteAction } from "./favorite-action";
import { toggleFavorite } from "../../../store/favorites/favorites-actions";
+import { dataExplorerActions } from "../../../store/data-explorer/data-explorer-action";
+import { FAVORITE_PANEL_ID } from "../../../views/favorite-panel/favorite-panel";
export const projectActionSet: ContextMenuActionSet = [[{
icon: NewProjectIcon,
@@ -17,6 +19,8 @@ export const projectActionSet: ContextMenuActionSet = [[{
}, {
component: ToggleFavoriteAction,
execute: (dispatch, resource) => {
- dispatch<any>(toggleFavorite(resource));
+ dispatch<any>(toggleFavorite(resource)).then(() => {
+ dispatch<any>(dataExplorerActions.REQUEST_ITEMS({ id : FAVORITE_PANEL_ID }));
+ });
}
}]];
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list