From a5353751a834b9c0a665c0caeb8c1cabcd0a5747 Mon Sep 17 00:00:00 2001 From: Jan Sandbrink Date: Fri, 8 May 2026 09:46:44 +0200 Subject: [PATCH] Improve rendering of client tokens table Making sure that wiki providers show up correctly in the "Integration type" column. --- .../my/access_token/oauth_client/row_component.rb | 7 +------ modules/wikis/config/locales/en.yml | 7 ++++++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/components/my/access_token/oauth_client/row_component.rb b/app/components/my/access_token/oauth_client/row_component.rb index 8567c248274..2a0b83f9846 100644 --- a/app/components/my/access_token/oauth_client/row_component.rb +++ b/app/components/my/access_token/oauth_client/row_component.rb @@ -43,12 +43,7 @@ module My end def integration_type - integration_class_name = client_token.oauth_client.integration_type - integration_class = begin - integration_class_name.constantize - rescue NameError - nil - end + integration_class = client_token.oauth_client.integration&.class return I18n.t("my_account.access_tokens.oauth_client.unknown_integration") unless integration_class diff --git a/modules/wikis/config/locales/en.yml b/modules/wikis/config/locales/en.yml index ad8a3c5320d..b963220ea10 100644 --- a/modules/wikis/config/locales/en.yml +++ b/modules/wikis/config/locales/en.yml @@ -20,10 +20,15 @@ en: one: Inline page link other: Inline page links wikis/internal_provider: Internal wiki + wikis/provider: + one: Wiki provider + other: Wiki providers wikis/relation_page_link: one: Relation page link other: Relation page links - wikis/xwiki_provider: XWiki provider + wikis/xwiki_provider: + one: XWiki provider + other: XWiki providers permission_manage_wiki_page_links: Manage Wiki Page Links project_module_wiki_platforms: Wiki providers wikis: