mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Fixed: Refresh queue count when navigating Activity: Queue
(cherry picked from commit 0a2b109a3fe101e260b623d0768240ef8b7a47ae)
This commit is contained in:
parent
a1211f54de
commit
e9cf9d05f5
@ -43,6 +43,7 @@ class QueueConnector extends Component {
|
|||||||
const {
|
const {
|
||||||
useCurrentPage,
|
useCurrentPage,
|
||||||
fetchQueue,
|
fetchQueue,
|
||||||
|
fetchQueueStatus,
|
||||||
gotoQueueFirstPage
|
gotoQueueFirstPage
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
@ -53,6 +54,8 @@ class QueueConnector extends Component {
|
|||||||
} else {
|
} else {
|
||||||
gotoQueueFirstPage();
|
gotoQueueFirstPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fetchQueueStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
@ -152,6 +155,7 @@ QueueConnector.propTypes = {
|
|||||||
useCurrentPage: PropTypes.bool.isRequired,
|
useCurrentPage: PropTypes.bool.isRequired,
|
||||||
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||||
fetchQueue: PropTypes.func.isRequired,
|
fetchQueue: PropTypes.func.isRequired,
|
||||||
|
fetchQueueStatus: PropTypes.func.isRequired,
|
||||||
gotoQueueFirstPage: PropTypes.func.isRequired,
|
gotoQueueFirstPage: PropTypes.func.isRequired,
|
||||||
gotoQueuePreviousPage: PropTypes.func.isRequired,
|
gotoQueuePreviousPage: PropTypes.func.isRequired,
|
||||||
gotoQueueNextPage: PropTypes.func.isRequired,
|
gotoQueueNextPage: PropTypes.func.isRequired,
|
||||||
|
Loading…
Reference in New Issue
Block a user