Add easy launch button for SFTP

This commit is contained in:
Dane Everitt 2019-12-21 21:16:12 -08:00
parent e87db889e9
commit 33eb1d259f
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 15 additions and 5 deletions

View File

@ -31,13 +31,23 @@ export default () => {
readOnly={true} readOnly={true}
/> />
</div> </div>
<div className={'mt-6'}> <div className={'mt-6 flex items-center'}>
<div className={'flex-1'}>
<div className={'border-l-4 border-cyan-500 p-3'}> <div className={'border-l-4 border-cyan-500 p-3'}>
<p className={'text-xs text-neutral-200'}> <p className={'text-xs text-neutral-200'}>
Your SFTP password is the same as the password you use to access this panel. Your SFTP password is the same as the password you use to access this panel.
</p> </p>
</div> </div>
</div> </div>
<div className={'ml-4'}>
<a
href={`sftp://${user.username}.${server.id}@${server.sftpDetails.ip}:${server.sftpDetails.port}`}
className={'btn btn-sm btn-secondary'}
>
Launch SFTP
</a>
</div>
</div>
</TitledGreyBox> </TitledGreyBox>
<div className={'w-full mt-6 md:flex-1 md:mt-0'}> <div className={'w-full mt-6 md:flex-1 md:mt-0'}>
<RenameServerBox/> <RenameServerBox/>