adress review

pull/1011/head
Audric Ackermann 5 years ago
parent 71cf53af15
commit fa2a17c09b
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -577,7 +577,6 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
private getLinkedDeviceSettings(): Array<LocalSettingType> {
const { linkedPubKeys } = this.state;
const { isSecondaryDevice } = this.props;
// tslint:disable-next-line: no-backbone-get-set-outside-model
const noPairedDeviceText = isSecondaryDevice
? window.i18n('deviceIsSecondaryNoPairing')
: window.i18n('noPairedDevices');

@ -5,7 +5,9 @@ import { SessionSettingCategory, SettingsViewProps } from './SessionSettings';
import { SessionButton } from '../SessionButton';
interface Props extends SettingsViewProps {
// showLinkDeviceButton is used to completely hide the button while the settings password lock is displayed
showLinkDeviceButton: boolean | null;
// isSecondaryDevice is used to just disable the linkDeviceButton when we are already a secondary device
isSecondaryDevice: boolean;
}
@ -16,6 +18,8 @@ export class SettingsHeader extends React.Component<Props, any> {
public constructor(props: any) {
super(props);
// mark the linkDeviceButton as disabled by default.
// it will be enabled if needed during componentDidMount().
this.state = {
disableLinkDeviceButton: true,
};

Loading…
Cancel
Save