Skip to content

Commit

Permalink
FIX env link deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Sep 4, 2023
1 parent ea7a8c6 commit 0131fb1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 10 additions & 4 deletions daikoku/javascript/src/components/frontend/api/ApiPricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const ApiPricingCard = (props: ApiPricingCardProps) => {
} else {
props.askForApikeys({ team, plan: plan, apiKey })
.then(r => {
console.debug({r})
console.debug({ r })
close()
})
}
Expand Down Expand Up @@ -176,9 +176,15 @@ const ApiPricingCard = (props: ApiPricingCardProps) => {
</p>
{tenant.display === 'environment' && (
<div className='flex-shrink-1 d-flex flex-column'>
<Link to={`./${props.plan.customName}/swagger`} relative='path' className="btn btn-sm btn-outline-primary mb-1">swagger</Link>
<Link to={`./${props.plan.customName}/testing`} relative='path' className="btn btn-sm btn-outline-primary mb-1">test</Link>
<Link to={`./${props.plan.customName}/documentation`} relative='path' className="btn btn-sm btn-outline-primary">Documentation</Link>
<Link
to={`./${props.plan.customName}/swagger`} relative='path'
className={classNames("btn btn-sm btn-outline-primary mb-1", {'link__disabled': !props.plan.swagger})}>swagger</Link>
<Link
to={`./${props.plan.customName}/testing`} relative='path'
className={classNames("btn btn-sm btn-outline-primary mb-1", {'link__disabled': !props.plan.testing?.enabled})}>test</Link>
<Link
to={`./${props.plan.customName}/documentation`} relative='path'
className={classNames("btn btn-sm btn-outline-primary", {'link__disabled': !props.plan.documentation})}>Documentation</Link>
</div>
)}
</div>
Expand Down
2 changes: 2 additions & 0 deletions daikoku/javascript/src/style/components/btn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ button {
}

.btn-outline-success.disabled,
.btn-outline-success.link__disabled,
.btn-outline-success:disabled,
.btn-outline-primary.disabled,
.btn-outline-primary.link__disabled,
.btn-outline-primary:disabled {
background-color: #fff;
border-color: #9e9e9e;
Expand Down

0 comments on commit 0131fb1

Please sign in to comment.