mirror of
https://github.com/Ravinou/borgwarehouse
synced 2026-03-14 14:25:46 +01:00
fix: 🐛 handle empty SSH_SERVER_PORT with quick command button #470
This commit is contained in:
parent
3c1ff79add
commit
88c8f920d9
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ export default function QuickCommands(props: QuickCommandsProps) {
|
|||
// Asynchronously call copy to clipboard
|
||||
navigator.clipboard
|
||||
.writeText(
|
||||
`ssh://${wizardEnv?.UNIX_USER}@${FQDN}${SSH_SERVER_PORT}/./${props.repositoryName}`
|
||||
`ssh://${wizardEnv?.UNIX_USER}@${FQDN}${SSH_SERVER_PORT ? SSH_SERVER_PORT : ''}/./${props.repositoryName}`
|
||||
)
|
||||
.then(() => {
|
||||
setIsCopied(true);
|
||||
|
|
@ -42,7 +42,7 @@ export default function QuickCommands(props: QuickCommandsProps) {
|
|||
) : (
|
||||
<div className={classes.tooltip}>
|
||||
ssh://{wizardEnv?.UNIX_USER}@{FQDN}
|
||||
{SSH_SERVER_PORT}/./
|
||||
{SSH_SERVER_PORT ? SSH_SERVER_PORT : ''}/./
|
||||
{props.repositoryName}
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue