Add an "Open admin" button to the integration pages
Each integration page now has a button next to its title that opens the product's own admin panel in a new tab, using the address entered on the integration. Tailscale links to its admin console. Only http(s) addresses become links. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
51ad309e35
commit
75f0a3d881
9 files changed
+64
-8
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import IntegrationPageTitle from "../components/IntegrationPageTitle";
|
||||
import { Link } from "react-router-dom";
|
||||
import { api, type CurrentUser, type GiteaRepo, type IntegrationSummary } from "../api/client";
|
||||
import { useSortable } from "../hooks/useSortable";
|
||||
@@ -113,7 +114,7 @@ export default function Gitea({ user }: { user: CurrentUser }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<h2 className="page-title mb-3">Gitea</h2>
|
||||
<IntegrationPageTitle title="Gitea" integration={selected} />
|
||||
{error && <div className="alert alert-danger">{error}</div>}
|
||||
|
||||
{integrations?.length === 0 ? (
|
||||
|
||||
Reference in new issue
Block a user