Truncate the clientId (#28406)

* Truncate the clientId

fixes: #28284

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fxed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-04-05 13:56:30 +02:00 committed by GitHub
parent 3fda2c0444
commit 73e22b32c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 12 deletions

View file

@ -229,7 +229,7 @@ export default class ListingPage extends CommonElements {
} }
goToItemDetails(itemName: string) { goToItemDetails(itemName: string) {
cy.get(this.#itemsRows).contains(itemName).click(); cy.get(this.#itemsRows).contains(itemName).click({ force: true });
return this; return this;
} }

View file

@ -45,17 +45,19 @@ const ClientDetailLink = (client: ClientRepresentation) => {
const { t } = useTranslation(); const { t } = useTranslation();
const { realm } = useRealm(); const { realm } = useRealm();
return ( return (
<Link <TableText wrapModifier="truncate">
key={client.id} <Link
to={toClient({ realm, clientId: client.id!, tab: "settings" })} key={client.id}
> to={toClient({ realm, clientId: client.id!, tab: "settings" })}
{client.clientId} >
{!client.enabled && ( {client.clientId}
<Badge key={`${client.id}-disabled`} isRead className="pf-u-ml-sm"> {!client.enabled && (
{t("disabled")} <Badge key={`${client.id}-disabled`} isRead className="pf-u-ml-sm">
</Badge> {t("disabled")}
)} </Badge>
</Link> )}
</Link>
</TableText>
); );
}; };