Improve rendering of client tokens table

Making sure that wiki providers show up correctly in the
"Integration type" column.
This commit is contained in:
Jan Sandbrink
2026-05-08 09:46:44 +02:00
parent 90acd7a022
commit a5353751a8
2 changed files with 7 additions and 7 deletions
@@ -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
+6 -1
View File
@@ -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: