fix SessionRegistrationView missing from signal.js

pull/1381/head
Audric Ackermann 5 years ago
parent 7b3981207e
commit 4d9371dfe7
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -982,7 +982,7 @@
} }
}); });
Whisper.events.on('showPasswordDialog', async (options) => { Whisper.events.on('showPasswordDialog', async options => {
if (appView) { if (appView) {
appView.showPasswordDialog(options); appView.showPasswordDialog(options);
} }

@ -49,6 +49,10 @@ const { SessionModal } = require('../../ts/components/session/SessionModal');
const { const {
SessionSeedModal, SessionSeedModal,
} = require('../../ts/components/session/SessionSeedModal'); } = require('../../ts/components/session/SessionSeedModal');
const {
SessionRegistrationView,
} = require('../../ts/components/session/SessionRegistrationView');
const { const {
SessionInboxView, SessionInboxView,
} = require('../../ts/components/session/SessionInboxView'); } = require('../../ts/components/session/SessionInboxView');
@ -255,6 +259,7 @@ exports.setup = (options = {}) => {
SessionSeedModal, SessionSeedModal,
SessionPasswordModal, SessionPasswordModal,
SessionPasswordPrompt, SessionPasswordPrompt,
SessionRegistrationView,
MediaGallery, MediaGallery,
Message, Message,
Quote, Quote,

@ -546,10 +546,10 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
buttonColor: SessionButtonColor.Primary, buttonColor: SessionButtonColor.Primary,
}, },
onClick: () => { onClick: () => {
window.Whisper.events.trigger('showPasswordDialog', { window.Whisper.events.trigger('showPasswordDialog', {
action: 'change', action: 'change',
onSuccess: this.onPasswordUpdated, onSuccess: this.onPasswordUpdated,
}); });
}, },
confirmationDialogParams: undefined, confirmationDialogParams: undefined,
}, },
@ -571,7 +571,7 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
action: 'remove', action: 'remove',
onSuccess: this.onPasswordUpdated, onSuccess: this.onPasswordUpdated,
}); });
}, },
confirmationDialogParams: undefined, confirmationDialogParams: undefined,
}, },
]; ];

Loading…
Cancel
Save