File size: 718 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import 'calypso/state/hosting/init';
import { getAtomicHostingIsLoadingSftpUsers } from './get-atomic-hosting-is-loading-sftp-users';
import { getAtomicHostingIsLoadingSshAccess } from './get-atomic-hosting-is-loading-ssh-access';
/**
* Returns if the SFTP users and SSH access data have loaded for given site.
* @param {Object} state Global state tree
* @param {number|null} siteId The ID of the site we're querying
* @returns {boolean} If the SFTP users and SSH access data has finished the first request
*/
export function getAtomicHostingIsLoadingSftpData( state, siteId ) {
return (
getAtomicHostingIsLoadingSftpUsers( state, siteId ) ||
getAtomicHostingIsLoadingSshAccess( state, siteId )
);
}
|