projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18549: Layout fixed, tests updated
[arvados-workbench2.git]
/
src
/
views
/
search-results-panel
/
search-results-panel.tsx
diff --git
a/src/views/search-results-panel/search-results-panel.tsx
b/src/views/search-results-panel/search-results-panel.tsx
index 6d1d2bf569f6d06d287f67fbde1f4e94901a05b3..d25682f6e1d8b59a07d4c91c4e8a469bd119504b 100644
(file)
--- a/
src/views/search-results-panel/search-results-panel.tsx
+++ b/
src/views/search-results-panel/search-results-panel.tsx
@@
-14,7
+14,6
@@
import { SearchBarAdvancedFormData } from 'models/search-bar';
import { User } from "models/user";
import { Config } from 'common/config';
import { Session } from "models/session";
import { User } from "models/user";
import { Config } from 'common/config';
import { Session } from "models/session";
-import { snackbarActions, SnackbarKind } from "store/snackbar/snackbar-actions";
export interface SearchResultsPanelDataProps {
data: SearchBarAdvancedFormData;
export interface SearchResultsPanelDataProps {
data: SearchBarAdvancedFormData;
@@
-29,7
+28,6
@@
export interface SearchResultsPanelActionProps {
onContextMenu: (event: React.MouseEvent<HTMLElement>, item: string) => void;
onDialogOpen: (ownerUuid: string) => void;
onItemDoubleClick: (item: string) => void;
onContextMenu: (event: React.MouseEvent<HTMLElement>, item: string) => void;
onDialogOpen: (ownerUuid: string) => void;
onItemDoubleClick: (item: string) => void;
- onPathDisplay: (path: string) => void;
}
export type SearchResultsPanelProps = SearchResultsPanelDataProps & SearchResultsPanelActionProps;
}
export type SearchResultsPanelProps = SearchResultsPanelDataProps & SearchResultsPanelActionProps;
@@
-51,15
+49,7
@@
const mapDispatchToProps = (dispatch: Dispatch): SearchResultsPanelActionProps =
},
onItemDoubleClick: uuid => {
dispatch<any>(navigateTo(uuid));
},
onItemDoubleClick: uuid => {
dispatch<any>(navigateTo(uuid));
- },
- onPathDisplay: (path: string) => {
- dispatch(snackbarActions.SHIFT_MESSAGES());
- dispatch(snackbarActions.OPEN_SNACKBAR({
- message: path,
- kind: SnackbarKind.INFO,
- hideDuration: 9999999999,
- }));
- },
+ }
});
export const SearchResultsPanel = connect(mapStateToProps, mapDispatchToProps)(SearchResultsPanelView);
});
export const SearchResultsPanel = connect(mapStateToProps, mapDispatchToProps)(SearchResultsPanelView);