mirror of https://github.com/vector-im/riot-web
Run a UI refresh over the OIDC Exchange confirmation dialog
parent
33a86f6cbe
commit
db346d129b
|
@ -70,26 +70,26 @@ export default class WidgetOpenIDPermissionsDialog extends React.Component {
|
||||||
return (
|
return (
|
||||||
<BaseDialog className='mx_WidgetOpenIDPermissionsDialog' hasCancel={true}
|
<BaseDialog className='mx_WidgetOpenIDPermissionsDialog' hasCancel={true}
|
||||||
onFinished={this.props.onFinished}
|
onFinished={this.props.onFinished}
|
||||||
title={_t("A widget would like to verify your identity")}>
|
title={_t("Allow this widget to verify your identity")}>
|
||||||
<div className='mx_WidgetOpenIDPermissionsDialog_content'>
|
<div className='mx_WidgetOpenIDPermissionsDialog_content'>
|
||||||
<p>
|
<p>
|
||||||
{_t(
|
{_t("The widget will verify your user ID, but won't be able to perform actions for you:")}
|
||||||
"A widget located at %(widgetUrl)s would like to verify your identity. " +
|
</p>
|
||||||
"By allowing this, the widget will be able to verify your user ID, but not " +
|
<p className="text-muted">
|
||||||
"perform actions as you.", {
|
{/* cheap trim to just get the path */}
|
||||||
widgetUrl: this.props.widget.templateUrl.split("?")[0],
|
{this.props.widget.templateUrl.split("?")[0].split("#")[0]}
|
||||||
},
|
|
||||||
)}
|
|
||||||
</p>
|
</p>
|
||||||
<LabelledToggleSwitch value={this.state.rememberSelection} toggleInFront={true}
|
|
||||||
onChange={this._onRememberSelectionChange}
|
|
||||||
label={_t("Remember my selection for this widget")} />
|
|
||||||
</div>
|
</div>
|
||||||
<DialogButtons
|
<DialogButtons
|
||||||
primaryButton={_t("Allow")}
|
primaryButton={_t("Continue")}
|
||||||
onPrimaryButtonClick={this._onAllow}
|
onPrimaryButtonClick={this._onAllow}
|
||||||
cancelButton={_t("Deny")}
|
|
||||||
onCancel={this._onDeny}
|
onCancel={this._onDeny}
|
||||||
|
additive={
|
||||||
|
<LabelledToggleSwitch
|
||||||
|
value={this.state.rememberSelection}
|
||||||
|
toggleInFront={true}
|
||||||
|
onChange={this._onRememberSelectionChange}
|
||||||
|
label={_t("Remember this")} />}
|
||||||
/>
|
/>
|
||||||
</BaseDialog>
|
</BaseDialog>
|
||||||
);
|
);
|
||||||
|
|
|
@ -2242,10 +2242,9 @@
|
||||||
"Approve": "Approve",
|
"Approve": "Approve",
|
||||||
"Decline All": "Decline All",
|
"Decline All": "Decline All",
|
||||||
"Remember my selection for this widget": "Remember my selection for this widget",
|
"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",
|
"Allow this widget to verify your identity": "Allow this widget 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.",
|
"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:",
|
||||||
"Allow": "Allow",
|
"Remember this": "Remember this",
|
||||||
"Deny": "Deny",
|
|
||||||
"Wrong file type": "Wrong file type",
|
"Wrong file type": "Wrong file type",
|
||||||
"Looks good!": "Looks good!",
|
"Looks good!": "Looks good!",
|
||||||
"Wrong Security Key": "Wrong Security Key",
|
"Wrong Security Key": "Wrong Security Key",
|
||||||
|
|
Loading…
Reference in New Issue