mirror of https://github.com/vector-im/riot-web
Fix sas verification buttons to match figma and remove useless inDialog prop from EncryptionPanel.js
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
24a5d8355f
commit
712e6e8c49
|
@ -61,3 +61,21 @@ limitations under the License.
|
||||||
.mx_VerificationShowSas_emojiSas_break {
|
.mx_VerificationShowSas_emojiSas_break {
|
||||||
flex-basis: 100%;
|
flex-basis: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_VerificationShowSas {
|
||||||
|
.mx_Dialog_buttons {
|
||||||
|
// this is more specific than the DialogButtons css so gets preference
|
||||||
|
button.mx_VerificationShowSas_matchButton {
|
||||||
|
color: $accent-color;
|
||||||
|
background-color: $accent-bg-color;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// this is more specific than the DialogButtons css so gets preference
|
||||||
|
button.mx_VerificationShowSas_noMatchButton {
|
||||||
|
color: $notice-primary-color;
|
||||||
|
background-color: $notice-primary-bg-color;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -61,7 +61,6 @@ export default class VerificationRequestDialog extends React.Component {
|
||||||
verificationRequestPromise={this.props.verificationRequestPromise}
|
verificationRequestPromise={this.props.verificationRequestPromise}
|
||||||
onClose={this.props.onFinished}
|
onClose={this.props.onFinished}
|
||||||
member={member}
|
member={member}
|
||||||
inDialog={true}
|
|
||||||
/>
|
/>
|
||||||
</BaseDialog>;
|
</BaseDialog>;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ import {_t} from "../../../languageHandler";
|
||||||
const MISMATCHES = ["m.key_mismatch", "m.user_error", "m.mismatched_sas"];
|
const MISMATCHES = ["m.key_mismatch", "m.user_error", "m.mismatched_sas"];
|
||||||
|
|
||||||
const EncryptionPanel = (props) => {
|
const EncryptionPanel = (props) => {
|
||||||
const {verificationRequest, verificationRequestPromise, member, onClose, layout, isRoomEncrypted, inDialog} = props;
|
const {verificationRequest, verificationRequestPromise, member, onClose, layout, isRoomEncrypted} = props;
|
||||||
const [request, setRequest] = useState(verificationRequest);
|
const [request, setRequest] = useState(verificationRequest);
|
||||||
// state to show a spinner immediately after clicking "start verification",
|
// state to show a spinner immediately after clicking "start verification",
|
||||||
// before we have a request
|
// before we have a request
|
||||||
|
@ -133,7 +133,7 @@ const EncryptionPanel = (props) => {
|
||||||
isSelfVerification={isSelfVerification}
|
isSelfVerification={isSelfVerification}
|
||||||
waitingForOtherParty={requested && initiatedByMe}
|
waitingForOtherParty={requested && initiatedByMe}
|
||||||
waitingForNetwork={requested && !initiatedByMe}
|
waitingForNetwork={requested && !initiatedByMe}
|
||||||
inDialog={inDialog} />
|
inDialog={layout === "dialog"} />
|
||||||
</React.Fragment>);
|
</React.Fragment>);
|
||||||
} else {
|
} else {
|
||||||
return (<React.Fragment>
|
return (<React.Fragment>
|
||||||
|
@ -145,7 +145,7 @@ const EncryptionPanel = (props) => {
|
||||||
member={member}
|
member={member}
|
||||||
request={request}
|
request={request}
|
||||||
key={request.channel.transactionId}
|
key={request.channel.transactionId}
|
||||||
inDialog={inDialog}
|
inDialog={layout === "dialog"}
|
||||||
phase={phase}
|
phase={phase}
|
||||||
device={device} />
|
device={device} />
|
||||||
</React.Fragment>);
|
</React.Fragment>);
|
||||||
|
|
|
@ -125,10 +125,10 @@ export default class VerificationShowSas extends React.Component {
|
||||||
confirm = <DialogButtons
|
confirm = <DialogButtons
|
||||||
primaryButton={_t("They match")}
|
primaryButton={_t("They match")}
|
||||||
onPrimaryButtonClick={this.onMatchClick}
|
onPrimaryButtonClick={this.onMatchClick}
|
||||||
primaryButtonClass="mx_UserInfo_wideButton"
|
primaryButtonClass="mx_UserInfo_wideButton mx_VerificationShowSas_matchButton"
|
||||||
cancelButton={_t("They don't match")}
|
cancelButton={_t("They don't match")}
|
||||||
onCancel={this.onDontMatchClick}
|
onCancel={this.onDontMatchClick}
|
||||||
cancelButtonClass="mx_UserInfo_wideButton"
|
cancelButtonClass="mx_UserInfo_wideButton mx_VerificationShowSas_noMatchButton"
|
||||||
/>;
|
/>;
|
||||||
} else {
|
} else {
|
||||||
confirm = <React.Fragment>
|
confirm = <React.Fragment>
|
||||||
|
|
Loading…
Reference in New Issue