fix links
This commit is contained in:
@@ -71,7 +71,7 @@ export default function CustomerSubscriptionsView({subscriptions}) {
|
|||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
<span className="badge badge-warning">
|
<span className="badge badge-warning">
|
||||||
<a href={`https://${item?.external_url}`}
|
<a href={`${item?.external_url}`}
|
||||||
target='_blank'
|
target='_blank'
|
||||||
rel="noreferrer">{item?.external_url}</a>
|
rel="noreferrer">{item?.external_url}</a>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -150,20 +150,43 @@ export default function SubscriptionViewCom() {
|
|||||||
<tr className="py-2 border-t border-dashed border-slate-300">
|
<tr className="py-2 border-t border-dashed border-slate-300">
|
||||||
<td className="px-2 py-2">
|
<td className="px-2 py-2">
|
||||||
<div className="text-left">
|
<div className="text-left">
|
||||||
<div
|
<div className="text-base font-semibold">{getDateTimeFromDateString(selectedSubscription?.added)}</div>
|
||||||
className="text-base font-semibold">{getDateTimeFromDateString(selectedSubscription?.added)}</div>
|
<div className="text-base font-semibold">{getDateTimeFromDateString(selectedSubscription?.updated)}</div>
|
||||||
|
<div className="text-base font-semibold">ID: {selectedSubscription?.id}</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="px-2">
|
<td className="px-2">
|
||||||
<div className="text-left">
|
<div className="text-left">
|
||||||
<div
|
<div
|
||||||
className="text-base font-semibold">{selectedSubscription?.product_id}</div>
|
className="text-base font-semibold">{selectedSubscription?.product_id}</div>
|
||||||
|
<div><a href={`http://${selectedSubscription?.primary_server}:${selectedSubscription?.provision_port}`}
|
||||||
|
target='_blank'
|
||||||
|
rel="noreferrer">{selectedSubscription?.primary_server}:{selectedSubscription?.provision_port}</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="px-2">
|
<td className="px-2">
|
||||||
<div className="text-left">
|
<div className="text-left">
|
||||||
<div
|
|
||||||
className="text-base font-semibold">{selectedSubscription?.internal_url}
|
|
||||||
|
<span className="text-base font-semibold">
|
||||||
|
<a href={`https://${selectedSubscription?.internal_url}`}
|
||||||
|
target='_blank'
|
||||||
|
rel="noreferrer">{selectedSubscription?.internal_url}</a>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
<span className="text-base font-semibold">
|
||||||
|
<a href={`${selectedSubscription?.external_url}`}
|
||||||
|
target='_blank'
|
||||||
|
rel="noreferrer">{selectedSubscription?.external_url}</a>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="text-base font-semibold">
|
||||||
<br/><span>Template :</span> {selectedSubscription?.product_template}
|
<br/><span>Template :</span> {selectedSubscription?.product_template}
|
||||||
<br/><span>Custom :</span> {selectedSubscription?.custom_template}
|
<br/><span>Custom :</span> {selectedSubscription?.custom_template}
|
||||||
</div>
|
</div>
|
||||||
@@ -177,7 +200,8 @@ export default function SubscriptionViewCom() {
|
|||||||
</td>
|
</td>
|
||||||
<td className="px-2">
|
<td className="px-2">
|
||||||
<div className="text-right">
|
<div className="text-right">
|
||||||
<button name='template' onClick={()=>setRebuildStatus({status: true, data:{}})}
|
<button name='template'
|
||||||
|
onClick={() => setRebuildStatus({status: true, data: {}})}
|
||||||
className={`rounded-md p-2 bg-primary text-white text-center`}>
|
className={`rounded-md p-2 bg-primary text-white text-center`}>
|
||||||
Rebuild
|
Rebuild
|
||||||
</button>
|
</button>
|
||||||
@@ -240,8 +264,10 @@ export default function SubscriptionViewCom() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
{ rebuildStatus?.status && <RebuildModal data={{}} templateRebuild={templateRebuild} proceedFunc={handleRebuildTemplate} closeModal={()=>setRebuildStatus({status: false, data:{}})} />}
|
{rebuildStatus?.status &&
|
||||||
|
<RebuildModal data={{}} templateRebuild={templateRebuild} proceedFunc={handleRebuildTemplate}
|
||||||
|
closeModal={() => setRebuildStatus({status: false, data: {}})}/>}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user