API & Client: fix

- user edition
- title for activity with gpx and no name in gpx
- style
This commit is contained in:
Sam
2018-06-14 13:39:18 +02:00
parent 019ed42bae
commit 3acdabb4da
6 changed files with 51 additions and 8 deletions

View File

@ -85,6 +85,7 @@ export const handleProfileFormSubmit = formData => dispatch => {
'Password and password confirmation don\'t match.'
))
}
delete formData.id
return FitTrackeeGenericApi
.postData('auth/profile/edit', formData)
.then(ret => {

View File

@ -46,7 +46,7 @@ a {
color: #40578a;
}
input, textarea {
input[type="text"], textarea {
width: 100%;
}

View File

@ -27,7 +27,7 @@ export default function RecordsCard (props) {
? 'No records'
: (Object.keys(recordsBySport).map(sportLabel => (
<table
className="table table-borderless record-table"
className="table table-borderless table-sm record-table"
key={sportLabel}
>
<thead>

View File

@ -40,7 +40,7 @@ export default class FitTrackeeApi {
static postData(target, data) {
const params = {
url: `${apiUrl}${target}/${data.id}`,
url: `${apiUrl}${target}${data.id ? `/${data.id}` : '' }`,
method: 'POST',
body: data,
type: 'application/json',