mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 13:02:23 -07:00
New: Import List Tags (#505)
* New: Import List Tags * New: Show ImportLists where Tag is Used in Tag manager * Fixed: SignalR Errors due to handleTag missing * Fixed: Clarify Lidarr Tags, not to be confused with LastFmTags
This commit is contained in:
parent
b17cccd736
commit
27736649c2
13 changed files with 101 additions and 6 deletions
|
@ -11,6 +11,7 @@ import { setAppValue, setVersion } from 'Store/Actions/appActions';
|
|||
import { update, updateItem, removeItem } from 'Store/Actions/baseActions';
|
||||
import { fetchHealth } from 'Store/Actions/systemActions';
|
||||
import { fetchQueue, fetchQueueDetails } from 'Store/Actions/queueActions';
|
||||
import { fetchTags, fetchTagDetails } from 'Store/Actions/tagActions';
|
||||
|
||||
function getState(status) {
|
||||
switch (status) {
|
||||
|
@ -68,7 +69,9 @@ const mapDispatchToProps = {
|
|||
dispatchRemoveItem: removeItem,
|
||||
dispatchFetchHealth: fetchHealth,
|
||||
dispatchFetchQueue: fetchQueue,
|
||||
dispatchFetchQueueDetails: fetchQueueDetails
|
||||
dispatchFetchQueueDetails: fetchQueueDetails,
|
||||
dispatchFetchTags: fetchTags,
|
||||
dispatchFetchTagDetails: fetchTagDetails
|
||||
};
|
||||
|
||||
class SignalRConnector extends Component {
|
||||
|
@ -263,6 +266,14 @@ class SignalRConnector extends Component {
|
|||
// No-op for now, we may want this later
|
||||
}
|
||||
|
||||
handleTag = (body) => {
|
||||
if (body.action === 'sync') {
|
||||
this.props.dispatchFetchTags();
|
||||
this.props.dispatchFetchTagDetails();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Listeners
|
||||
|
||||
|
@ -362,7 +373,9 @@ SignalRConnector.propTypes = {
|
|||
dispatchRemoveItem: PropTypes.func.isRequired,
|
||||
dispatchFetchHealth: PropTypes.func.isRequired,
|
||||
dispatchFetchQueue: PropTypes.func.isRequired,
|
||||
dispatchFetchQueueDetails: PropTypes.func.isRequired
|
||||
dispatchFetchQueueDetails: PropTypes.func.isRequired,
|
||||
dispatchFetchTags: PropTypes.func.isRequired,
|
||||
dispatchFetchTagDetails: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
export default connect(createMapStateToProps, mapDispatchToProps)(SignalRConnector);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue