removed server side translation in favour of client side (#32985)
fixes: #32984 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
5e2f09f66d
commit
d01f531b82
2 changed files with 12 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
|||
import {
|
||||
ContinueCancelModal,
|
||||
label,
|
||||
useEnvironment,
|
||||
} from "@keycloak/keycloak-ui-shared";
|
||||
import {
|
||||
|
@ -142,14 +143,20 @@ export const Applications = () => {
|
|||
variant="link"
|
||||
onClick={() => window.open(application.effectiveUrl)}
|
||||
>
|
||||
{application.clientName || application.clientId}{" "}
|
||||
{label(
|
||||
t,
|
||||
application.clientName || application.clientId,
|
||||
)}{" "}
|
||||
<ExternalLinkAltIcon />
|
||||
</Button>
|
||||
)}
|
||||
{!application.effectiveUrl && (
|
||||
<span>
|
||||
{application.clientName || application.clientId}
|
||||
</span>
|
||||
<>
|
||||
{label(
|
||||
t,
|
||||
application.clientName || application.clientId,
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</DataListCell>,
|
||||
<DataListCell
|
||||
|
|
|
@ -244,7 +244,7 @@ public class AccountRestService {
|
|||
private ClientRepresentation modelToRepresentation(ClientModel model, List<String> inUseClients, List<String> offlineClients, Map<String, UserConsentModel> consents) {
|
||||
ClientRepresentation representation = new ClientRepresentation();
|
||||
representation.setClientId(model.getClientId());
|
||||
representation.setClientName(StringPropertyReplacer.replaceProperties(model.getName(), getProperties()));
|
||||
representation.setClientName(model.getName());
|
||||
representation.setDescription(model.getDescription());
|
||||
representation.setUserConsentRequired(model.isConsentRequired());
|
||||
representation.setInUse(inUseClients.contains(model.getClientId()));
|
||||
|
|
Loading…
Reference in a new issue