all repos — caroster @ 1e909471006fccec28897bf6f454afbcc93ad81c

[Octree] Group carpool to your event https://caroster.io

:sparkles: Add save button on car cards
Tim Izzo sika.tim@gmail.com
Tue, 07 Jul 2020 17:59:37 +0200
commit

1e909471006fccec28897bf6f454afbcc93ad81c

parent

23f2d048c650ad41b74f05cad6e897a769166d64

2 files changed, 14 insertions(+), 2 deletions(-)

jump to
M app/src/containers/Car/HeaderEditing.jsapp/src/containers/Car/HeaderEditing.js

@@ -178,10 +178,18 @@ <div className={classes.actions}>

<Button variant="outlined" color="primary" + onClick={onSave} + id="CarSave" + > + {t('generic.save')} + </Button> + <Button + variant="outlined" + color="primary" onClick={toggleRemoving} id="CarRemove" > - {t('car.actions.remove')} + {t('generic.remove')} </Button> </div> <RemoveDialog

@@ -210,8 +218,12 @@ marginTop: theme.spacing(2),

}, actions: { display: 'flex', + flexDirection: 'column', justifyContent: 'center', margin: theme.spacing(2, 0), + '& > *:first-child': { + marginBottom: theme.spacing(2), + }, }, }));
M app/src/locales/fr.jsonapp/src/locales/fr.json

@@ -5,6 +5,7 @@ "close": "Fermer",

"create": "Créer", "cancel": "Annuler", "remove": "Supprimer", + "save": "Enregistrer", "confirm": "Confirmer" }, "event": {

@@ -51,7 +52,6 @@ "notes": "Infos complémentaires",

"created": "La voiture a été créée" }, "actions": { - "remove": "Supprimer la voiture", "remove_alert": "Voulez-vous vraiment supprimer cette voiture et ajouter les inscrits à la liste d'attente ?", "removed": "La voiture a été supprimée" },