API & Client: fix
- user edition - title for activity with gpx and no name in gpx - style
This commit is contained in:
@ -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 => {
|
||||
|
@ -46,7 +46,7 @@ a {
|
||||
color: #40578a;
|
||||
}
|
||||
|
||||
input, textarea {
|
||||
input[type="text"], textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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',
|
||||
|
Reference in New Issue
Block a user