mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(ui): open GitHub 'Need Help?' links in new tab
Add target="_blank" and rel="noopener noreferrer" to GitHub issue links in the admin dashboard UI to prevent navigating away from the current page. Affected components: - AddModelForm: 'Need Help?' link - AddAutoRouterTab: 'Need Help?' link - AddCredentialModal: 'Need Help?' link - EditCredentialModal: 'Need Help?' link - ReuseCredentialsModal: 'Need Help?' link
This commit is contained in:
parent
10a48f7655
commit
1584514373
5 changed files with 5 additions and 5 deletions
|
|
@ -363,7 +363,7 @@ const AddModelForm: React.FC<AddModelFormProps> = ({
|
|||
)}
|
||||
<div className="flex justify-between items-center mb-4">
|
||||
<Tooltip title="Get help on our github">
|
||||
<Typography.Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Typography.Link>
|
||||
<Typography.Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Typography.Link>
|
||||
</Tooltip>
|
||||
<div className="space-x-2">
|
||||
<Button onClick={handleTestConnection} loading={isTestingConnection}>
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ const AddAutoRouterTab: React.FC<AddAutoRouterTabProps> = ({ form, handleOk, acc
|
|||
|
||||
<div className="flex justify-between items-center mb-4">
|
||||
<Tooltip title="Get help on our github">
|
||||
<Typography.Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Typography.Link>
|
||||
<Typography.Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Typography.Link>
|
||||
</Tooltip>
|
||||
<div className="space-x-2">
|
||||
<Button onClick={handleTestConnection} loading={isTestingConnection}>
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ const AddCredentialsModal: React.FC<AddCredentialsModalProps> = ({ open, onCance
|
|||
{/* Modal Footer */}
|
||||
<div className="flex justify-between items-center">
|
||||
<Tooltip title="Get help on our github">
|
||||
<Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Link>
|
||||
<Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Link>
|
||||
</Tooltip>
|
||||
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ export default function EditCredentialsModal({
|
|||
{/* Modal Footer */}
|
||||
<div className="flex justify-between items-center">
|
||||
<Tooltip title="Get help on our github">
|
||||
<Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Link>
|
||||
<Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Link>
|
||||
</Tooltip>
|
||||
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ const ReuseCredentialsModal: React.FC<ReuseCredentialsModalProps> = ({
|
|||
{/* Modal Footer */}
|
||||
<div className="flex justify-between items-center">
|
||||
<Tooltip title="Get help on our github">
|
||||
<Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Link>
|
||||
<Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Link>
|
||||
</Tooltip>
|
||||
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue