Add IDialogAesthetics
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
27b9175ca3
commit
29ff5f3f9c
1 changed files with 13 additions and 2 deletions
|
@ -29,6 +29,17 @@ import BaseDialog from "./BaseDialog";
|
||||||
import { IAuthData } from "matrix-js-sdk/src/interactive-auth";
|
import { IAuthData } from "matrix-js-sdk/src/interactive-auth";
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
|
|
||||||
|
interface IDialogAesthetics {
|
||||||
|
[x: string]: {
|
||||||
|
[x: number]: {
|
||||||
|
title: string;
|
||||||
|
body: string;
|
||||||
|
continueText: string;
|
||||||
|
continueKind: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
interface IProps extends IDialogProps {
|
interface IProps extends IDialogProps {
|
||||||
// matrix client to use for UI auth requests
|
// matrix client to use for UI auth requests
|
||||||
matrixClient: MatrixClient;
|
matrixClient: MatrixClient;
|
||||||
|
@ -62,7 +73,7 @@ interface IProps extends IDialogProps {
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// Default is defined in _getDefaultDialogAesthetics()
|
// Default is defined in _getDefaultDialogAesthetics()
|
||||||
aestheticsForStagePhases?: {};
|
aestheticsForStagePhases?: IDialogAesthetics;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IState {
|
interface IState {
|
||||||
|
@ -87,7 +98,7 @@ export default class InteractiveAuthDialog extends React.Component<IProps, IStat
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private getDefaultDialogAesthetics() {
|
private getDefaultDialogAesthetics(): IDialogAesthetics {
|
||||||
const ssoAesthetics = {
|
const ssoAesthetics = {
|
||||||
[SSOAuthEntry.PHASE_PREAUTH]: {
|
[SSOAuthEntry.PHASE_PREAUTH]: {
|
||||||
title: _t("Use Single Sign On to continue"),
|
title: _t("Use Single Sign On to continue"),
|
||||||
|
|
Loading…
Reference in a new issue