mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
chore: new telephony config as default (#260)
- Mark first new telephony config as default - Show telephony config in campaign details
This commit is contained in:
parent
14bc66d21d
commit
5cfdbeff02
4 changed files with 139 additions and 19 deletions
|
|
@ -614,6 +614,21 @@ export default function CampaignDetailPage() {
|
|||
)}
|
||||
</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt className="text-sm font-medium">Telephony Configuration</dt>
|
||||
<dd className="mt-1">
|
||||
{campaign.telephony_configuration_id ? (
|
||||
<button
|
||||
onClick={() => router.push(`/telephony-configurations/${campaign.telephony_configuration_id}`)}
|
||||
className="text-blue-600 hover:text-blue-800 hover:underline"
|
||||
>
|
||||
{campaign.telephony_configuration_name || `Configuration #${campaign.telephony_configuration_id}`}
|
||||
</button>
|
||||
) : (
|
||||
<span className="text-muted-foreground">Not assigned</span>
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt className="text-sm font-medium">State</dt>
|
||||
<dd className="mt-1 capitalize">{campaign.state}</dd>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue