fix: make save buttons always shows up prior to cancel buttons
fix: make all save buttons of submit type
This commit is contained in:
parent
7da522b1da
commit
b39692e6f7
3 changed files with 13 additions and 12 deletions
|
|
@ -59,14 +59,14 @@ const BooleanPropertiesTable = memo(
|
|||
<H4>{title}</H4>
|
||||
{editing ? (
|
||||
<div className={classes.rightAligned}>
|
||||
<Link onClick={innerCancel} color="secondary">
|
||||
Cancel
|
||||
<Link type="submit" color="primary">
|
||||
Save
|
||||
</Link>
|
||||
<Link
|
||||
className={classes.rightLink}
|
||||
type="submit"
|
||||
color="primary">
|
||||
Save
|
||||
onClick={innerCancel}
|
||||
color="secondary">
|
||||
Cancel
|
||||
</Link>
|
||||
</div>
|
||||
) : (
|
||||
|
|
|
|||
|
|
@ -43,14 +43,15 @@ const ActionCol = ({ disabled, editing }) => {
|
|||
{editing && (
|
||||
<Td textAlign="center" width={actionColSize}>
|
||||
<Link
|
||||
className={classes.cancelButton}
|
||||
color="secondary"
|
||||
onClick={resetForm}>
|
||||
Cancel
|
||||
</Link>
|
||||
<Link color="primary" onClick={submitForm}>
|
||||
className={classes.saveButton}
|
||||
type="submit"
|
||||
color="primary"
|
||||
onClick={submitForm}>
|
||||
Save
|
||||
</Link>
|
||||
<Link color="secondary" onClick={resetForm}>
|
||||
Cancel
|
||||
</Link>
|
||||
</Td>
|
||||
)}
|
||||
{!editing && enableEdit && (
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { bySize, bold } from 'src/styling/helpers'
|
||||
|
||||
export default {
|
||||
cancelButton: {
|
||||
saveButton: {
|
||||
marginRight: 20
|
||||
},
|
||||
lastOfGroup: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue