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();
}
handleMovie = (body) => {
handleIndexer = (body) => {
const action = body.action;
const section = 'movies';
const section = 'indexers';
if (action === 'updated') {
this.props.dispatchUpdateItem({ section, ...body.resource });

View File

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