Skip to content

Commit

Permalink
Fixed: Spinning of Test All Indexer icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Qstick committed Sep 24, 2021
1 parent 063083a commit 40c49bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Components/SignalRConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/Indexer/Index/IndexerIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ class IndexerIndex extends Component {
isSaving,
saveError,
isDeleting,
isTestingAll,
deleteError,
onScroll,
onSortSelect,
Expand Down Expand Up @@ -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}
/>
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 40c49bc

Please sign in to comment.