API & Client - display uploaded files size in admin + minor changes

This commit is contained in:
Sam
2020-05-01 20:18:19 +02:00
parent abca323936
commit 5aa1d77553
12 changed files with 119 additions and 39 deletions

View File

@ -8,6 +8,7 @@ import { Link } from 'react-router-dom'
import Message from '../Common/Message'
import { deletePicture, uploadPicture } from '../../actions/user'
import { apiUrl, getFileSize } from '../../utils'
import { history } from '../../index'
function ProfileDetail({
appConfig,
@ -135,6 +136,12 @@ function ProfileDetail({
)}{' '}
</div>
</div>
<input
type="submit"
className="btn btn-secondary"
onClick={() => history.go(-1)}
value={t('common:Back')}
/>
</div>
</div>
</div>