Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Feb 15, 2024
1 parent 37d3a57 commit c823a33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion backend/src/Notifo.Domain/NotificationFormatting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static NotificationFormatting<TOut> Transform<TIn, TOut>(this Notificatio
{
var result = new LocalizedText(source);

foreach (var (key, value) in source)
foreach (var (key, value) in other)
{
if (!string.IsNullOrWhiteSpace(value))
{
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/app/pages/integrations/ConfiguredIntegration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,23 @@ export const ConfiguredIntegration = React.memo((props: ConfiguredIntegrationPro
))}

{configured.status !== 'Verified' &&
<StatusLabel status={configured.status} />
<StatusLabel className='mr-1' status={configured.status} />
}

{configured.test === true &&
<Badge pill>{texts.integrations.modeTest}</Badge>
<Badge className='mr-1' pill>{texts.integrations.modeTest}</Badge>
}

{configured.test === false &&
<Badge pill>{texts.integrations.modeProduction}</Badge>
<Badge className='mr-1' pill>{texts.integrations.modeProduction}</Badge>
}

{configured.enabled &&
<Badge color='danger' pill>{texts.common.disabled}</Badge>
{!configured.enabled &&
<Badge className='mr-1' color='danger' pill>{texts.common.disabled}</Badge>
}

{!!configured.condition &&
<Badge pill>{texts.integrations.condition}</Badge>
<Badge className='mr-1' pill>{texts.integrations.condition}</Badge>
}

{!!configured.priority &&
Expand All @@ -90,7 +90,7 @@ export const ConfiguredIntegration = React.memo((props: ConfiguredIntegrationPro
{properties.filter(x => !!x.value).map(property => (
<div key={property.label} className='mt-2'>
<small>
<strong>{property.label}</strong><br />{property.value}
<strong>{property.label}</strong><br /><div className='truncate'>{property.value}</div>
</small>
</div>
))}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/pages/integrations/StatusLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { Badge } from 'reactstrap';
import { IntegrationStatus } from '@app/service';
import { texts } from '@app/texts';

export const StatusLabel = (props: { status: IntegrationStatus }) => {
export const StatusLabel = (props: { status: IntegrationStatus; className?: string }) => {
const [color, text] = getStatusText(props.status);

return (
<Badge pill color={color}>{text}</Badge>
<Badge pill className={props.className} color={color}>{text}</Badge>
);
};

Expand Down

0 comments on commit c823a33

Please sign in to comment.