projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create new search query parser
[arvados-workbench2.git]
/
src
/
store
/
navigation
/
navigation-action.ts
diff --git
a/src/store/navigation/navigation-action.ts
b/src/store/navigation/navigation-action.ts
index 66fba9cf16d231c7f5d7b3866419c2cf05c96109..f610eb5e99fd6786f8fe975888256c3e544d27d1 100644
(file)
--- a/
src/store/navigation/navigation-action.ts
+++ b/
src/store/navigation/navigation-action.ts
@@
-8,9
+8,10
@@
import { ResourceKind, extractUuidKind } from '~/models/resource';
import { getCollectionUrl } from "~/models/collection";
import { getProjectUrl } from "~/models/project";
import { SidePanelTreeCategory } from '../side-panel-tree/side-panel-tree-actions';
import { getCollectionUrl } from "~/models/collection";
import { getProjectUrl } from "~/models/project";
import { SidePanelTreeCategory } from '../side-panel-tree/side-panel-tree-actions';
-import { Routes, getProcessUrl, getProcessLogUrl } from '~/routes/routes';
+import { Routes, getProcessUrl, getProcessLogUrl
, getGroupUrl
} from '~/routes/routes';
import { RootState } from '~/store/store';
import { ServiceRepository } from '~/services/services';
import { RootState } from '~/store/store';
import { ServiceRepository } from '~/services/services';
+import { GROUPS_PANEL_LABEL } from '~/store/breadcrumbs/breadcrumbs-actions';
export const navigateTo = (uuid: string) =>
async (dispatch: Dispatch) => {
export const navigateTo = (uuid: string) =>
async (dispatch: Dispatch) => {
@@
-21,6
+22,8
@@
export const navigateTo = (uuid: string) =>
dispatch<any>(navigateToCollection(uuid));
} else if (kind === ResourceKind.CONTAINER_REQUEST) {
dispatch<any>(navigateToProcess(uuid));
dispatch<any>(navigateToCollection(uuid));
} else if (kind === ResourceKind.CONTAINER_REQUEST) {
dispatch<any>(navigateToProcess(uuid));
+ } else if (kind === ResourceKind.VIRTUAL_MACHINE) {
+ dispatch<any>(navigateToAdminVirtualMachines);
}
if (uuid === SidePanelTreeCategory.FAVORITES) {
dispatch<any>(navigateToFavorites);
}
if (uuid === SidePanelTreeCategory.FAVORITES) {
dispatch<any>(navigateToFavorites);
@@
-30,6
+33,8
@@
export const navigateTo = (uuid: string) =>
dispatch(navigateToWorkflows);
} else if (uuid === SidePanelTreeCategory.TRASH) {
dispatch(navigateToTrash);
dispatch(navigateToWorkflows);
} else if (uuid === SidePanelTreeCategory.TRASH) {
dispatch(navigateToTrash);
+ } else if (uuid === GROUPS_PANEL_LABEL) {
+ dispatch(navigateToGroups);
}
};
}
};
@@
-72,6
+77,8
@@
export const navigateToSshKeysAdmin= push(Routes.SSH_KEYS_ADMIN);
export const navigateToSshKeysUser= push(Routes.SSH_KEYS_USER);
export const navigateToSshKeysUser= push(Routes.SSH_KEYS_USER);
+export const navigateToSiteManager= push(Routes.SITE_MANAGER);
+
export const navigateToMyAccount = push(Routes.MY_ACCOUNT);
export const navigateToKeepServices = push(Routes.KEEP_SERVICES);
export const navigateToMyAccount = push(Routes.MY_ACCOUNT);
export const navigateToKeepServices = push(Routes.KEEP_SERVICES);
@@
-81,3
+88,9
@@
export const navigateToComputeNodes = push(Routes.COMPUTE_NODES);
export const navigateToUsers = push(Routes.USERS);
export const navigateToApiClientAuthorizations = push(Routes.API_CLIENT_AUTHORIZATIONS);
export const navigateToUsers = push(Routes.USERS);
export const navigateToApiClientAuthorizations = push(Routes.API_CLIENT_AUTHORIZATIONS);
+
+export const navigateToGroups = push(Routes.GROUPS);
+
+export const navigateToGroupDetails = compose(push, getGroupUrl);
+
+export const navigateToLinks = push(Routes.LINKS);