|
|
@ -113,6 +113,8 @@ class CutoffUnmet extends Component {
|
|
|
|
isPopulated,
|
|
|
|
isPopulated,
|
|
|
|
error,
|
|
|
|
error,
|
|
|
|
items,
|
|
|
|
items,
|
|
|
|
|
|
|
|
isArtistFetching,
|
|
|
|
|
|
|
|
isArtistPopulated,
|
|
|
|
selectedFilterKey,
|
|
|
|
selectedFilterKey,
|
|
|
|
filters,
|
|
|
|
filters,
|
|
|
|
columns,
|
|
|
|
columns,
|
|
|
@ -130,6 +132,9 @@ class CutoffUnmet extends Component {
|
|
|
|
isConfirmSearchAllCutoffUnmetModalOpen
|
|
|
|
isConfirmSearchAllCutoffUnmetModalOpen
|
|
|
|
} = this.state;
|
|
|
|
} = this.state;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isAllPopulated = isPopulated && isArtistPopulated;
|
|
|
|
|
|
|
|
const isAnyFetching = isFetching || isArtistFetching;
|
|
|
|
|
|
|
|
|
|
|
|
const itemsSelected = !!this.getSelectedIds().length;
|
|
|
|
const itemsSelected = !!this.getSelectedIds().length;
|
|
|
|
const isShowingMonitored = getMonitoredValue(this.props);
|
|
|
|
const isShowingMonitored = getMonitoredValue(this.props);
|
|
|
|
|
|
|
|
|
|
|
@ -178,26 +183,26 @@ class CutoffUnmet extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<PageContentBody>
|
|
|
|
<PageContentBody>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
isFetching && !isPopulated &&
|
|
|
|
isAnyFetching && !isAllPopulated &&
|
|
|
|
<LoadingIndicator />
|
|
|
|
<LoadingIndicator />
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
!isFetching && error &&
|
|
|
|
!isAnyFetching && error &&
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
Error fetching cutoff unmet
|
|
|
|
Error fetching cutoff unmet
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
isPopulated && !error && !items.length &&
|
|
|
|
isAllPopulated && !error && !items.length &&
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
No cutoff unmet items
|
|
|
|
No cutoff unmet items
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
isPopulated && !error && !!items.length &&
|
|
|
|
isAllPopulated && !error && !!items.length &&
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<Table
|
|
|
|
<Table
|
|
|
|
columns={columns}
|
|
|
|
columns={columns}
|
|
|
@ -261,6 +266,8 @@ CutoffUnmet.propTypes = {
|
|
|
|
isPopulated: PropTypes.bool.isRequired,
|
|
|
|
isPopulated: PropTypes.bool.isRequired,
|
|
|
|
error: PropTypes.object,
|
|
|
|
error: PropTypes.object,
|
|
|
|
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
|
|
|
|
isArtistFetching: PropTypes.bool.isRequired,
|
|
|
|
|
|
|
|
isArtistPopulated: PropTypes.bool.isRequired,
|
|
|
|
selectedFilterKey: PropTypes.string.isRequired,
|
|
|
|
selectedFilterKey: PropTypes.string.isRequired,
|
|
|
|
filters: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
filters: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|