Merge pull request #4124 from matrix-org/jryans/show-bootstrap-more
Show both bootstrap and reset cross-signing where appropriate
This commit is contained in:
commit
1958dae519
1 changed files with 20 additions and 12 deletions
|
@ -158,18 +158,27 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||||
)}</p>;
|
)}</p>;
|
||||||
}
|
}
|
||||||
|
|
||||||
let bootstrapButton;
|
let resetButton;
|
||||||
if (enabledForAccount) {
|
if (enabledForAccount) {
|
||||||
bootstrapButton = (
|
resetButton = (
|
||||||
<AccessibleButton kind="danger" onClick={this._destroySecureSecretStorage}>
|
<div className="mx_CrossSigningPanel_buttonRow">
|
||||||
{_t("Reset cross-signing and secret storage")}
|
<AccessibleButton kind="danger" onClick={this._destroySecureSecretStorage}>
|
||||||
</AccessibleButton>
|
{_t("Reset cross-signing and secret storage")}
|
||||||
|
</AccessibleButton>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
} else if (!enabledForAccount && homeserverSupportsCrossSigning) {
|
}
|
||||||
|
let bootstrapButton;
|
||||||
|
if (
|
||||||
|
(!enabledForAccount || !crossSigningPublicKeysOnDevice) &&
|
||||||
|
homeserverSupportsCrossSigning
|
||||||
|
) {
|
||||||
bootstrapButton = (
|
bootstrapButton = (
|
||||||
<AccessibleButton kind="primary" onClick={this._bootstrapSecureSecretStorage}>
|
<div className="mx_CrossSigningPanel_buttonRow">
|
||||||
{_t("Bootstrap cross-signing and secret storage")}
|
<AccessibleButton kind="primary" onClick={this._bootstrapSecureSecretStorage}>
|
||||||
</AccessibleButton>
|
{_t("Bootstrap cross-signing and secret storage")}
|
||||||
|
</AccessibleButton>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -198,9 +207,8 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||||
</tbody></table>
|
</tbody></table>
|
||||||
</details>
|
</details>
|
||||||
{errorSection}
|
{errorSection}
|
||||||
<div className="mx_CrossSigningPanel_buttonRow">
|
{bootstrapButton}
|
||||||
{bootstrapButton}
|
{resetButton}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue