[ARVADOS-WORKBENCH2] updated: 2.1.0-115-gadc0008e
Git user
git at public.arvados.org
Wed Nov 25 19:05:30 UTC 2020
Summary of changes:
src/views-components/details-panel/collection-details.tsx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
via adc0008ee9319b6201a6d7bac5bc76757d59c0b8 (commit)
from 00f6263122e23665b758b0182e9d478844713bf9 (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 adc0008ee9319b6201a6d7bac5bc76757d59c0b8
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date: Wed Nov 25 16:05:00 2020 -0300
17098: Removes unnecessary prop.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>
diff --git a/src/views-components/details-panel/collection-details.tsx b/src/views-components/details-panel/collection-details.tsx
index d31a83d1..f5bac366 100644
--- a/src/views-components/details-panel/collection-details.tsx
+++ b/src/views-components/details-panel/collection-details.tsx
@@ -61,7 +61,6 @@ export class CollectionDetails extends DetailsData<CollectionResource> {
interface CollectionVersionBrowserProps {
currentCollection: CollectionResource | undefined;
versions: CollectionResource[];
- isAdmin: boolean;
}
interface CollectionVersionBrowserDispatchProps {
@@ -71,13 +70,12 @@ interface CollectionVersionBrowserDispatchProps {
const mapStateToProps = (state: RootState): CollectionVersionBrowserProps => {
const currentCollection = getResource<CollectionResource>(state.detailsPanel.resourceUuid)(state.resources);
- const isAdmin = state.auth.user!.isAdmin;
const versions = currentCollection
&& filterResources(rsc =>
(rsc as CollectionResource).currentVersionUuid === currentCollection.currentVersionUuid)(state.resources)
.sort((a: CollectionResource, b: CollectionResource) => b.version - a.version) as CollectionResource[]
|| [];
- return { currentCollection, versions, isAdmin };
+ return { currentCollection, versions };
};
const mapDispatchToProps = () =>
@@ -100,7 +98,7 @@ const mapDispatchToProps = () =>
const CollectionVersionBrowser = withStyles(styles)(
connect(mapStateToProps, mapDispatchToProps)(
- ({ currentCollection, versions, isAdmin, showVersion, handleContextMenu, classes }: CollectionVersionBrowserProps & CollectionVersionBrowserDispatchProps & WithStyles<CssRules>) => {
+ ({ currentCollection, versions, showVersion, handleContextMenu, classes }: CollectionVersionBrowserProps & CollectionVersionBrowserDispatchProps & WithStyles<CssRules>) => {
return <div data-cy="collection-version-browser">
<Grid container>
<Grid item xs={2}>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list