You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Show the default IS as a placeholder in Settings
This changes the UX for the set IS field to show the default IS as a placeholder value (as opposed to an initial value as if the user had actually entered it). Fixes https://github.com/vector-im/riot-web/issues/10528
This commit is contained in:
@@ -95,8 +95,9 @@ export default class SetIdServer extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
|
defaultIdServer,
|
||||||
currentClientIdServer: MatrixClientPeg.get().getIdentityServerUrl(),
|
currentClientIdServer: MatrixClientPeg.get().getIdentityServerUrl(),
|
||||||
idServer: defaultIdServer,
|
idServer: "",
|
||||||
error: null,
|
error: null,
|
||||||
busy: false,
|
busy: false,
|
||||||
disconnectBusy: false,
|
disconnectBusy: false,
|
||||||
@@ -265,7 +266,10 @@ export default class SetIdServer extends React.Component {
|
|||||||
</span>
|
</span>
|
||||||
<Field label={_t("Identity Server")}
|
<Field label={_t("Identity Server")}
|
||||||
id="mx_SetIdServer_idServer"
|
id="mx_SetIdServer_idServer"
|
||||||
type="text" value={this.state.idServer} autoComplete="off"
|
type="text"
|
||||||
|
autoComplete="off"
|
||||||
|
placeholder={this.state.defaultIdServer}
|
||||||
|
value={this.state.idServer}
|
||||||
onChange={this._onIdentityServerChanged}
|
onChange={this._onIdentityServerChanged}
|
||||||
tooltipContent={this._getTooltip()}
|
tooltipContent={this._getTooltip()}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user