Skip to content

Commit 31d0876

Browse files
committed
Display AI label with normal brightness when AI feature is disabled
(#4400, #4413)
1 parent 91df1e9 commit 31d0876

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/webviews/apps/plus/shared/components/integrations-chip.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,18 @@ export class GlIntegrationsChip extends LitElement {
356356
<span class="integration__icon"><code-icon icon="${icon}"></code-icon></span>
357357
${this.aiEnabled
358358
? html`<span class="integration__content">
359-
<span class="integration__title">
360-
<span>${model?.provider.name ?? 'AI'}</span>
361-
${showProBadge
362-
? html` <gl-feature-badge
363-
placement="right"
364-
.source=${{ source: 'home', detail: 'integrations' } as const}
365-
cloud
366-
></gl-feature-badge>`
367-
: nothing}
368-
</span>
359+
${model?.provider.name
360+
? html`<span class="integration__title">
361+
<span>${model.provider.name}</span>
362+
${showProBadge
363+
? html` <gl-feature-badge
364+
placement="right"
365+
.source=${{ source: 'home', detail: 'integrations' } as const}
366+
cloud
367+
></gl-feature-badge>`
368+
: nothing}
369+
</span>`
370+
: html`<span class="integration_details">AI</span>`}
369371
${model?.name ? html`<span class="integration__details">${model.name}</span>` : nothing}
370372
</span>
371373
<span class="integration__actions">

0 commit comments

Comments
 (0)