|
|
@ -1,5 +1,6 @@
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
import Alert from 'Components/Alert';
|
|
|
|
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
|
|
|
|
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
|
|
|
|
import FilterMenu from 'Components/Menu/FilterMenu';
|
|
|
|
import FilterMenu from 'Components/Menu/FilterMenu';
|
|
|
|
import PageContent from 'Components/Page/PageContent';
|
|
|
|
import PageContent from 'Components/Page/PageContent';
|
|
|
@ -11,7 +12,7 @@ import Table from 'Components/Table/Table';
|
|
|
|
import TableBody from 'Components/Table/TableBody';
|
|
|
|
import TableBody from 'Components/Table/TableBody';
|
|
|
|
import TableOptionsModalWrapper from 'Components/Table/TableOptions/TableOptionsModalWrapper';
|
|
|
|
import TableOptionsModalWrapper from 'Components/Table/TableOptions/TableOptionsModalWrapper';
|
|
|
|
import TablePager from 'Components/Table/TablePager';
|
|
|
|
import TablePager from 'Components/Table/TablePager';
|
|
|
|
import { align, icons } from 'Helpers/Props';
|
|
|
|
import { align, icons, kinds } from 'Helpers/Props';
|
|
|
|
import hasDifferentItems from 'Utilities/Object/hasDifferentItems';
|
|
|
|
import hasDifferentItems from 'Utilities/Object/hasDifferentItems';
|
|
|
|
import translate from 'Utilities/String/translate';
|
|
|
|
import translate from 'Utilities/String/translate';
|
|
|
|
import HistoryRowConnector from './HistoryRowConnector';
|
|
|
|
import HistoryRowConnector from './HistoryRowConnector';
|
|
|
@ -107,9 +108,9 @@ class History extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
!isFetchingAny && hasError &&
|
|
|
|
!isFetchingAny && hasError &&
|
|
|
|
<div>
|
|
|
|
<Alert kind={kinds.DANGER}>
|
|
|
|
{translate('UnableToLoadHistory')}
|
|
|
|
{translate('UnableToLoadHistory')}
|
|
|
|
</div>
|
|
|
|
</Alert>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -117,9 +118,9 @@ class History extends Component {
|
|
|
|
// wait for the albums to populate because they are never coming.
|
|
|
|
// wait for the albums to populate because they are never coming.
|
|
|
|
|
|
|
|
|
|
|
|
isPopulated && !hasError && !items.length &&
|
|
|
|
isPopulated && !hasError && !items.length &&
|
|
|
|
<div>
|
|
|
|
<Alert kind={kinds.INFO}>
|
|
|
|
No history found
|
|
|
|
{translate('NoHistory')}
|
|
|
|
</div>
|
|
|
|
</Alert>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|