Root folder handler for signalR
This commit is contained in:
parent
551fa7fe10
commit
29f905b942
|
@ -11,6 +11,7 @@ import { setAppValue, setVersion } from 'Store/Actions/appActions';
|
||||||
import { update, updateItem, removeItem } from 'Store/Actions/baseActions';
|
import { update, updateItem, removeItem } from 'Store/Actions/baseActions';
|
||||||
import { fetchHealth } from 'Store/Actions/systemActions';
|
import { fetchHealth } from 'Store/Actions/systemActions';
|
||||||
import { fetchQueue, fetchQueueDetails } from 'Store/Actions/queueActions';
|
import { fetchQueue, fetchQueueDetails } from 'Store/Actions/queueActions';
|
||||||
|
import { fetchRootFolders } from 'Store/Actions/rootFolderActions';
|
||||||
import { fetchTags, fetchTagDetails } from 'Store/Actions/tagActions';
|
import { fetchTags, fetchTagDetails } from 'Store/Actions/tagActions';
|
||||||
|
|
||||||
function getState(status) {
|
function getState(status) {
|
||||||
|
@ -70,6 +71,7 @@ const mapDispatchToProps = {
|
||||||
dispatchFetchHealth: fetchHealth,
|
dispatchFetchHealth: fetchHealth,
|
||||||
dispatchFetchQueue: fetchQueue,
|
dispatchFetchQueue: fetchQueue,
|
||||||
dispatchFetchQueueDetails: fetchQueueDetails,
|
dispatchFetchQueueDetails: fetchQueueDetails,
|
||||||
|
dispatchFetchRootFolders: fetchRootFolders,
|
||||||
dispatchFetchTags: fetchTags,
|
dispatchFetchTags: fetchTags,
|
||||||
dispatchFetchTagDetails: fetchTagDetails
|
dispatchFetchTagDetails: fetchTagDetails
|
||||||
};
|
};
|
||||||
|
@ -259,6 +261,10 @@ class SignalRConnector extends Component {
|
||||||
// No-op for now, we may want this later
|
// No-op for now, we may want this later
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleRootfolder = () => {
|
||||||
|
this.props.dispatchFetchRootFolders();
|
||||||
|
}
|
||||||
|
|
||||||
handleTag = (body) => {
|
handleTag = (body) => {
|
||||||
if (body.action === 'sync') {
|
if (body.action === 'sync') {
|
||||||
this.props.dispatchFetchTags();
|
this.props.dispatchFetchTags();
|
||||||
|
@ -367,6 +373,7 @@ SignalRConnector.propTypes = {
|
||||||
dispatchFetchHealth: PropTypes.func.isRequired,
|
dispatchFetchHealth: PropTypes.func.isRequired,
|
||||||
dispatchFetchQueue: PropTypes.func.isRequired,
|
dispatchFetchQueue: PropTypes.func.isRequired,
|
||||||
dispatchFetchQueueDetails: PropTypes.func.isRequired,
|
dispatchFetchQueueDetails: PropTypes.func.isRequired,
|
||||||
|
dispatchFetchRootFolders: PropTypes.func.isRequired,
|
||||||
dispatchFetchTags: PropTypes.func.isRequired,
|
dispatchFetchTags: PropTypes.func.isRequired,
|
||||||
dispatchFetchTagDetails: PropTypes.func.isRequired
|
dispatchFetchTagDetails: PropTypes.func.isRequired
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue