Skip to content
Snippets Groups Projects
Unverified Commit 5a892e9c authored by Anton Kulyk's avatar Anton Kulyk Committed by GitHub
Browse files

Fix "Edit collection permissions" btn disappeared (#16339)

parent 62a955fc
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,13 @@ import React, { useState, useCallback } from "react";
import { Box } from "grid-styled";
import _ from "underscore";
import { withRouter } from "react-router";
import { connect } from "react-redux";
import Collection from "metabase/entities/collections";
import Search from "metabase/entities/search";
import { getUserIsAdmin } from "metabase/selectors/user";
import BulkActions from "metabase/collections/components/BulkActions";
import Header from "metabase/collections/components/Header";
import ItemList from "metabase/collections/components/ItemList";
......@@ -34,6 +37,12 @@ const getModelsByFilter = filter => {
const itemKeyFn = item => `${item.id}:${item.model}`;
function mapStateToProps(state) {
return {
isAdmin: getUserIsAdmin(state),
};
}
function CollectionContent({
collection,
collectionId,
......@@ -230,5 +239,6 @@ export default _.compose(
id: (_, props) => props.collectionId,
reload: true,
}),
connect(mapStateToProps),
withRouter,
)(CollectionContent);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment