Skip to content

Commit 33eb1d2

Browse files
committed
Add easy launch button for SFTP
1 parent e87db88 commit 33eb1d2

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

resources/scripts/components/server/settings/SettingsContainer.tsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,21 @@ export default () => {
3131
readOnly={true}
3232
/>
3333
</div>
34-
<div className={'mt-6'}>
35-
<div className={'border-l-4 border-cyan-500 p-3'}>
36-
<p className={'text-xs text-neutral-200'}>
37-
Your SFTP password is the same as the password you use to access this panel.
38-
</p>
34+
<div className={'mt-6 flex items-center'}>
35+
<div className={'flex-1'}>
36+
<div className={'border-l-4 border-cyan-500 p-3'}>
37+
<p className={'text-xs text-neutral-200'}>
38+
Your SFTP password is the same as the password you use to access this panel.
39+
</p>
40+
</div>
41+
</div>
42+
<div className={'ml-4'}>
43+
<a
44+
href={`sftp://${user.username}.${server.id}@${server.sftpDetails.ip}:${server.sftpDetails.port}`}
45+
className={'btn btn-sm btn-secondary'}
46+
>
47+
Launch SFTP
48+
</a>
3949
</div>
4050
</div>
4151
</TitledGreyBox>

0 commit comments

Comments
 (0)