mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
chore: updatae documentation for api trigger
This commit is contained in:
parent
5ad5bbd985
commit
0d7b225f76
12 changed files with 120 additions and 39 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import {
|
||||
ArrowLeft,
|
||||
Copy,
|
||||
ExternalLink,
|
||||
Pencil,
|
||||
Plus,
|
||||
|
|
@ -212,6 +213,20 @@ export default function TelephonyConfigurationDetailPage() {
|
|||
<CardDescription>
|
||||
Updated {new Date(config.updated_at).toLocaleString()}
|
||||
</CardDescription>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
navigator.clipboard
|
||||
.writeText(String(config.id))
|
||||
.then(() => toast.success("Configuration ID copied"))
|
||||
.catch(() => toast.error("Failed to copy ID"));
|
||||
}}
|
||||
title="Click to copy"
|
||||
className="inline-flex items-center gap-1 self-start rounded font-mono text-xs text-muted-foreground hover:text-foreground"
|
||||
>
|
||||
<span className="truncate">Configuration ID: {config.id}</span>
|
||||
<Copy className="h-3 w-3 shrink-0" />
|
||||
</button>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 shrink-0">
|
||||
{!config.is_default_outbound && (
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import {
|
||||
ChevronRight,
|
||||
Copy,
|
||||
ExternalLink,
|
||||
Pencil,
|
||||
Plus,
|
||||
|
|
@ -198,6 +199,22 @@ export default function TelephonyConfigurationsPage() {
|
|||
{item.phone_number_count} phone{" "}
|
||||
{item.phone_number_count === 1 ? "number" : "numbers"}
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
navigator.clipboard
|
||||
.writeText(String(item.id))
|
||||
.then(() => toast.success("Configuration ID copied"))
|
||||
.catch(() => toast.error("Failed to copy ID"));
|
||||
}}
|
||||
title="Click to copy"
|
||||
className="inline-flex items-center gap-1 self-start rounded font-mono text-xs text-muted-foreground hover:text-foreground"
|
||||
>
|
||||
<span className="truncate">Configuration ID: {item.id}</span>
|
||||
<Copy className="h-3 w-3 shrink-0" />
|
||||
</button>
|
||||
</div>
|
||||
</Link>
|
||||
<div className="flex items-center gap-1">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue