Merge pull request #262 from gnosis/236-change-owners-name
Feature #236: Edit owner name in read-only mode
This commit is contained in:
commit
8783eac2a0
|
@ -162,33 +162,35 @@ class ManageOwners extends React.Component<Props, State> {
|
||||||
</TableCell>
|
</TableCell>
|
||||||
))}
|
))}
|
||||||
<TableCell component="td">
|
<TableCell component="td">
|
||||||
{granted && (
|
<Row align="end" className={classes.actions}>
|
||||||
<Row align="end" className={classes.actions}>
|
<Img
|
||||||
<Img
|
alt="Edit owner"
|
||||||
alt="Edit owner"
|
className={classes.editOwnerIcon}
|
||||||
className={classes.editOwnerIcon}
|
src={RenameOwnerIcon}
|
||||||
src={RenameOwnerIcon}
|
onClick={this.onShow('EditOwner', row)}
|
||||||
onClick={this.onShow('EditOwner', row)}
|
testId={RENAME_OWNER_BTN_TEST_ID}
|
||||||
testId={RENAME_OWNER_BTN_TEST_ID}
|
/>
|
||||||
/>
|
{granted && (
|
||||||
<Img
|
<>
|
||||||
alt="Replace owner"
|
|
||||||
className={classes.replaceOwnerIcon}
|
|
||||||
src={ReplaceOwnerIcon}
|
|
||||||
onClick={this.onShow('ReplaceOwner', row)}
|
|
||||||
testId={REPLACE_OWNER_BTN_TEST_ID}
|
|
||||||
/>
|
|
||||||
{ownerData.size > 1 && (
|
|
||||||
<Img
|
<Img
|
||||||
alt="Remove owner"
|
alt="Replace owner"
|
||||||
className={classes.removeOwnerIcon}
|
className={classes.replaceOwnerIcon}
|
||||||
src={RemoveOwnerIcon}
|
src={ReplaceOwnerIcon}
|
||||||
onClick={this.onShow('RemoveOwner', row)}
|
onClick={this.onShow('ReplaceOwner', row)}
|
||||||
testId={REMOVE_OWNER_BTN_TEST_ID}
|
testId={REPLACE_OWNER_BTN_TEST_ID}
|
||||||
/>
|
/>
|
||||||
)}
|
{ownerData.size > 1 && (
|
||||||
</Row>
|
<Img
|
||||||
)}
|
alt="Remove owner"
|
||||||
|
className={classes.removeOwnerIcon}
|
||||||
|
src={RemoveOwnerIcon}
|
||||||
|
onClick={this.onShow('RemoveOwner', row)}
|
||||||
|
testId={REMOVE_OWNER_BTN_TEST_ID}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
) }
|
||||||
|
</Row>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Reference in New Issue