projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18559: Link from users panel to user profile page.
[arvados-workbench2.git]
/
src
/
views-components
/
data-explorer
/
renderers.tsx
diff --git
a/src/views-components/data-explorer/renderers.tsx
b/src/views-components/data-explorer/renderers.tsx
index a2acaca4525e6bceb6d65f869dae09f986412c21..7cdd9b835a6b0aad5cfefff1de6dbc6b0361d965 100644
(file)
--- a/
src/views-components/data-explorer/renderers.tsx
+++ b/
src/views-components/data-explorer/renderers.tsx
@@
-195,7
+195,10
@@
const renderIsActive = (props: { uuid: string, kind: ResourceKind, isActive: boo
color="primary"
checked={props.isActive}
disabled={!!props.disabled}
color="primary"
checked={props.isActive}
disabled={!!props.disabled}
- onClick={() => props.toggleIsActive(props.uuid)} />;
+ onClick={(e) => {
+ e.stopPropagation();
+ props.toggleIsActive(props.uuid)
+ }} />;
} else {
return <Typography />;
}
} else {
return <Typography />;
}
@@
-230,7
+233,10
@@
const renderIsHidden = (props: {
color="primary"
checked={props.visible}
disabled={!props.canManage}
color="primary"
checked={props.visible}
disabled={!props.canManage}
- onClick={() => props.setMemberIsHidden(props.memberLinkUuid, props.permissionLinkUuid, !props.visible)} />;
+ onClick={(e) => {
+ e.stopPropagation();
+ props.setMemberIsHidden(props.memberLinkUuid, props.permissionLinkUuid, !props.visible);
+ }} />;
} else {
return <Typography />;
}
} else {
return <Typography />;
}
@@
-263,7
+269,10
@@
const renderIsAdmin = (props: { uuid: string, isAdmin: boolean, toggleIsAdmin: (
<Checkbox
color="primary"
checked={props.isAdmin}
<Checkbox
color="primary"
checked={props.isAdmin}
- onClick={() => props.toggleIsAdmin(props.uuid)} />;
+ onClick={(e) => {
+ e.stopPropagation();
+ props.toggleIsAdmin(props.uuid);
+ }} />;
export const ResourceIsAdmin = connect(
(state: RootState, props: { uuid: string }) => {
export const ResourceIsAdmin = connect(
(state: RootState, props: { uuid: string }) => {