Fixed: Spinning of Test All Indexer icon

#507
This commit is contained in:
Qstick
2021-09-23 20:42:17 -05:00
parent 063083a1f1
commit 40c49bce9b
2 changed files with 5 additions and 3 deletions

View File

@@ -168,9 +168,9 @@ class SignalRConnector extends Component {
this.props.dispatchFetchIndexerStatus(); this.props.dispatchFetchIndexerStatus();
} }
handleMovie = (body) => { handleIndexer = (body) => {
const action = body.action; const action = body.action;
const section = 'movies'; const section = 'indexers';
if (action === 'updated') { if (action === 'updated') {
this.props.dispatchUpdateItem({ section, ...body.resource }); this.props.dispatchUpdateItem({ section, ...body.resource });

View File

@@ -270,6 +270,7 @@ class IndexerIndex extends Component {
isSaving, isSaving,
saveError, saveError,
isDeleting, isDeleting,
isTestingAll,
deleteError, deleteError,
onScroll, onScroll,
onSortSelect, onSortSelect,
@@ -310,7 +311,7 @@ class IndexerIndex extends Component {
<PageToolbarButton <PageToolbarButton
label={'Test All Indexers'} label={'Test All Indexers'}
iconName={icons.TEST} iconName={icons.TEST}
spinningName={icons.TEST} isSpinning={isTestingAll}
isDisabled={hasNoIndexer} isDisabled={hasNoIndexer}
onPress={this.props.onTestAllPress} onPress={this.props.onTestAllPress}
/> />
@@ -489,6 +490,7 @@ IndexerIndex.propTypes = {
isSaving: PropTypes.bool.isRequired, isSaving: PropTypes.bool.isRequired,
saveError: PropTypes.object, saveError: PropTypes.object,
isDeleting: PropTypes.bool.isRequired, isDeleting: PropTypes.bool.isRequired,
isTestingAll: PropTypes.bool.isRequired,
deleteError: PropTypes.object, deleteError: PropTypes.object,
onSortSelect: PropTypes.func.isRequired, onSortSelect: PropTypes.func.isRequired,
onFilterSelect: PropTypes.func.isRequired, onFilterSelect: PropTypes.func.isRequired,