Skip to content
Snippets Groups Projects
Commit b6eec340 authored by Tom Robinson's avatar Tom Robinson
Browse files

Merge branch 'propagate-collections-perms' of github.com:metabase/metabase...

Merge branch 'propagate-collections-perms' of github.com:metabase/metabase into propagate-collections-perms
parents 46212b8e 75faa071
No related branches found
No related tags found
No related merge requests found
......@@ -352,7 +352,7 @@ class GroupPermissionCell extends Component {
const AccessOption = ({ value, option, onChange }) => (
<div
className={cx(
"flex py2 px2 align-center bg-brand-hover text-white-hover cursor-pointer",
"flex py2 pl2 pr3 align-center bg-brand-hover text-white-hover cursor-pointer text-bold",
{
"bg-brand text-white": value === option,
},
......@@ -361,9 +361,9 @@ const AccessOption = ({ value, option, onChange }) => (
>
<Icon
name={option.icon}
className="mr1"
className="mr2"
style={{ color: option.iconColor }}
size={18}
size={22}
/>
{option.title}
</div>
......
......@@ -19,11 +19,11 @@ const mapDispatchToProps = {
const TogglePropagateAction = connect(mapStateToProps, mapDispatchToProps)(
({ propagate, setPropagatePermissions }) => (
<div
className="flex align-center bg-medium p1 cursor-pointer"
className="flex align-center bg-medium px2 py1 cursor-pointer"
onClick={() => setPropagatePermissions(!propagate)}
>
<span className="mr2 text-small">{t`Also change sub-collections`}</span>
<Toggle small value={propagate} />
<span className="ml1 text-bold text-small">{t`Also change sub-collections`}</span>
</div>
),
);
......
......@@ -275,14 +275,14 @@ const OPTION_COLLECTION_WRITE = {
...OPTION_GREEN,
value: "write",
title: t`Curate collection`,
tooltip: t`Can add and remove questions from this collection`,
tooltip: t`Can edit this collection and its contents`,
};
const OPTION_COLLECTION_READ = {
...OPTION_YELLOW,
value: "read",
title: t`View collection`,
tooltip: t`Can view questions in this collection`,
tooltip: t`Can view items in this collection`,
};
export const getTablesPermissionsGrid = createSelector(
......
......@@ -35,15 +35,15 @@
}
:local(.toggle.small) {
width: 36px;
height: 18px;
width: 28px;
height: 17px;
}
:local(.toggle.small):after {
width: 14px;
height: 14px;
width: 13px;
height: 13px;
}
:local(.toggle.small.selected):after {
left: 19px;
left: 12px;
}
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