X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ecfa844eeff535078ca59f8baa0915052932338c..4bb9d50b428773c4712e8eebdb6756f45efb06f6:/src/views/trash-panel/trash-panel.tsx diff --git a/src/views/trash-panel/trash-panel.tsx b/src/views/trash-panel/trash-panel.tsx index db7d8f68..92febd8a 100644 --- a/src/views/trash-panel/trash-panel.tsx +++ b/src/views/trash-panel/trash-panel.tsx @@ -63,20 +63,20 @@ export const ResourceRestore = const resource = getResource(props.uuid)(state.resources); return { resource, dispatch: props.dispatch }; })((props: { resource?: TrashableResource, dispatch?: Dispatch }) => - { - if (props.resource && props.dispatch) { - props.dispatch(toggleTrashed( - props.resource.kind, - props.resource.uuid, - props.resource.ownerUuid, - props.resource.isTrashed - )); - } - }}> - + + { + if (props.resource && props.dispatch) { + props.dispatch(toggleTrashed( + props.resource.kind, + props.resource.uuid, + props.resource.ownerUuid, + props.resource.isTrashed + )); + } + }}> - - + + ); export const trashPanelColumns: DataColumns = [ @@ -155,23 +155,17 @@ export const TrashPanel = withStyles(styles)( }))( class extends React.Component { render() { - return this.hasAnyTrashedResources() - ? } /> - : ; - } - - hasAnyTrashedResources = () => { - // TODO: implement check if there is anything in the trash, - // without taking pagination into the account - return true; + return + } />; } handleContextMenu = (event: React.MouseEvent, resourceUuid: string) => {