From db346d129bdd503b4a04fafdbf2785bda944071a Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 27 Jan 2021 13:13:44 -0700 Subject: [PATCH] Run a UI refresh over the OIDC Exchange confirmation dialog --- .../dialogs/WidgetOpenIDPermissionsDialog.js | 26 +++++++++---------- src/i18n/strings/en_EN.json | 7 +++-- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/components/views/dialogs/WidgetOpenIDPermissionsDialog.js b/src/components/views/dialogs/WidgetOpenIDPermissionsDialog.js index 7ed3d04318..c01d3d39b8 100644 --- a/src/components/views/dialogs/WidgetOpenIDPermissionsDialog.js +++ b/src/components/views/dialogs/WidgetOpenIDPermissionsDialog.js @@ -70,26 +70,26 @@ export default class WidgetOpenIDPermissionsDialog extends React.Component { return ( + title={_t("Allow this widget to verify your identity")}>

- {_t( - "A widget located at %(widgetUrl)s would like to verify your identity. " + - "By allowing this, the widget will be able to verify your user ID, but not " + - "perform actions as you.", { - widgetUrl: this.props.widget.templateUrl.split("?")[0], - }, - )} + {_t("The widget will verify your user ID, but won't be able to perform actions for you:")} +

+

+ {/* cheap trim to just get the path */} + {this.props.widget.templateUrl.split("?")[0].split("#")[0]}

-
} />
); diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 8d047ea3f1..228042f854 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -2242,10 +2242,9 @@ "Approve": "Approve", "Decline All": "Decline All", "Remember my selection for this widget": "Remember my selection for this widget", - "A widget would like to verify your identity": "A widget would like to verify your identity", - "A widget located at %(widgetUrl)s would like to verify your identity. By allowing this, the widget will be able to verify your user ID, but not perform actions as you.": "A widget located at %(widgetUrl)s would like to verify your identity. By allowing this, the widget will be able to verify your user ID, but not perform actions as you.", - "Allow": "Allow", - "Deny": "Deny", + "Allow this widget to verify your identity": "Allow this widget to verify your identity", + "The widget will verify your user ID, but won't be able to perform actions for you:": "The widget will verify your user ID, but won't be able to perform actions for you:", + "Remember this": "Remember this", "Wrong file type": "Wrong file type", "Looks good!": "Looks good!", "Wrong Security Key": "Wrong Security Key",