react-code-dataset / wp-calypso /client /state /selectors /get-atomic-hosting-is-loading-sftp-data.js
react-code-dataset / wp-calypso /client /state /selectors /get-atomic-hosting-is-loading-sftp-data.js
Download wp-calypso/client/state/selectors/get-atomic-hosting-is-loading-sftp-data.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 718 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-is-loading-sftp-data.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/get-atomic-hosting-is-loading-sftp-data.js
-
curl -L -o get-atomic-hosting-is-loading-sftp-data.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-is-loading-sftp-data.js
718 Bytes
| 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 ) | |
| ); | |
| } | |