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
Import components
This commit is contained in:
@@ -25,6 +25,10 @@ import Modal from '../../../../Modal';
|
|||||||
import { promptForBackupPassphrase } from '../../../../CrossSigningManager';
|
import { promptForBackupPassphrase } from '../../../../CrossSigningManager';
|
||||||
import {copyNode} from "../../../../utils/strings";
|
import {copyNode} from "../../../../utils/strings";
|
||||||
import {SSOAuthEntry} from "../../../../components/views/auth/InteractiveAuthEntryComponents";
|
import {SSOAuthEntry} from "../../../../components/views/auth/InteractiveAuthEntryComponents";
|
||||||
|
import AccessibleButton from "../../../../components/views/elements/AccessibleButton";
|
||||||
|
import DialogButtons from "../../../../components/views/elements/DialogButtons";
|
||||||
|
import InlineSpinner from "../../../../components/views/elements/InlineSpinner";
|
||||||
|
|
||||||
|
|
||||||
const PHASE_LOADING = 0;
|
const PHASE_LOADING = 0;
|
||||||
const PHASE_LOADERROR = 1;
|
const PHASE_LOADERROR = 1;
|
||||||
@@ -380,7 +384,6 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
|
|||||||
// Once we're confident enough in this (and it's supported enough) we can do
|
// Once we're confident enough in this (and it's supported enough) we can do
|
||||||
// it automatically.
|
// it automatically.
|
||||||
// https://github.com/vector-im/riot-web/issues/11696
|
// https://github.com/vector-im/riot-web/issues/11696
|
||||||
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
|
||||||
const Field = sdk.getComponent('views.elements.Field');
|
const Field = sdk.getComponent('views.elements.Field');
|
||||||
|
|
||||||
let authPrompt;
|
let authPrompt;
|
||||||
@@ -429,10 +432,6 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_renderPhaseShowKey() {
|
_renderPhaseShowKey() {
|
||||||
const AccessibleButton = sdk.getComponent('elements.AccessibleButton');
|
|
||||||
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
|
||||||
const InlineSpinner = sdk.getComponent("elements.InlineSpinner");
|
|
||||||
|
|
||||||
let continueButton;
|
let continueButton;
|
||||||
if (this.state.phase === PHASE_SHOWKEY) {
|
if (this.state.phase === PHASE_SHOWKEY) {
|
||||||
continueButton = <DialogButtons primaryButton={_t("Continue")}
|
continueButton = <DialogButtons primaryButton={_t("Continue")}
|
||||||
@@ -486,7 +485,6 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_renderPhaseLoadError() {
|
_renderPhaseLoadError() {
|
||||||
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
|
||||||
return <div>
|
return <div>
|
||||||
<p>{_t("Unable to query secret storage status")}</p>
|
<p>{_t("Unable to query secret storage status")}</p>
|
||||||
<div className="mx_Dialog_buttons">
|
<div className="mx_Dialog_buttons">
|
||||||
@@ -500,8 +498,6 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_renderPhaseIntro() {
|
_renderPhaseIntro() {
|
||||||
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
|
||||||
|
|
||||||
let cancelButton;
|
let cancelButton;
|
||||||
if (this.props.force) {
|
if (this.props.force) {
|
||||||
// if this is a forced key reset then aborting will just leave the old keys
|
// if this is a forced key reset then aborting will just leave the old keys
|
||||||
@@ -532,7 +528,6 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_renderPhaseSkipConfirm() {
|
_renderPhaseSkipConfirm() {
|
||||||
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
|
||||||
return <div>
|
return <div>
|
||||||
{_t(
|
{_t(
|
||||||
"Without completing security on this session, it won’t have " +
|
"Without completing security on this session, it won’t have " +
|
||||||
@@ -568,7 +563,6 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
|
|||||||
|
|
||||||
let content;
|
let content;
|
||||||
if (this.state.error) {
|
if (this.state.error) {
|
||||||
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
|
||||||
content = <div>
|
content = <div>
|
||||||
<p>{_t("Unable to set up secret storage")}</p>
|
<p>{_t("Unable to set up secret storage")}</p>
|
||||||
<div className="mx_Dialog_buttons">
|
<div className="mx_Dialog_buttons">
|
||||||
|
|||||||
Reference in New Issue
Block a user