|
|
@ -181,11 +181,11 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showEditProfileDialog(options) {
|
|
|
|
showEditProfileDialog(options) {
|
|
|
|
const dialog = new Whisper.EditProfileDialogView(options);
|
|
|
|
const dialog = new Whisper.EditProfileDialogView(options);
|
|
|
|
this.el.append(dialog.el);
|
|
|
|
this.el.prepend(dialog.el);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showUserDetailsDialog(options) {
|
|
|
|
showUserDetailsDialog(options) {
|
|
|
|
const dialog = new Whisper.UserDetailsDialogView(options);
|
|
|
|
const dialog = new Whisper.UserDetailsDialogView(options);
|
|
|
|
this.el.append(dialog.el);
|
|
|
|
this.el.prepend(dialog.el);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showNicknameDialog({ pubKey, title, message, nickname, onOk, onCancel }) {
|
|
|
|
showNicknameDialog({ pubKey, title, message, nickname, onOk, onCancel }) {
|
|
|
|
const _title = title || `Change nickname for ${pubKey}`;
|
|
|
|
const _title = title || `Change nickname for ${pubKey}`;
|
|
|
@ -196,16 +196,16 @@
|
|
|
|
resolve: onOk,
|
|
|
|
resolve: onOk,
|
|
|
|
reject: onCancel,
|
|
|
|
reject: onCancel,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.el.append(dialog.el);
|
|
|
|
this.el.prepend(dialog.el);
|
|
|
|
dialog.focusInput();
|
|
|
|
dialog.focusInput();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showPasswordDialog(options) {
|
|
|
|
showPasswordDialog(options) {
|
|
|
|
const dialog = new Whisper.PasswordDialogView(options);
|
|
|
|
const dialog = new Whisper.PasswordDialogView(options);
|
|
|
|
this.el.append(dialog.el);
|
|
|
|
this.el.prepend(dialog.el);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showSeedDialog() {
|
|
|
|
showSeedDialog() {
|
|
|
|
const dialog = new Whisper.SeedDialogView();
|
|
|
|
const dialog = new Whisper.SeedDialogView();
|
|
|
|
this.el.append(dialog.el);
|
|
|
|
this.el.prepend(dialog.el);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showQRDialog(string) {
|
|
|
|
showQRDialog(string) {
|
|
|
|
const dialog = new Whisper.QRDialogView({
|
|
|
|
const dialog = new Whisper.QRDialogView({
|
|
|
@ -215,12 +215,11 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showDevicePairingDialog(options) {
|
|
|
|
showDevicePairingDialog(options) {
|
|
|
|
const dialog = new Whisper.DevicePairingDialogView(options);
|
|
|
|
const dialog = new Whisper.DevicePairingDialogView(options);
|
|
|
|
|
|
|
|
this.el.prepend(dialog.el);
|
|
|
|
this.el.append(dialog.el);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showDevicePairingWordsDialog() {
|
|
|
|
showDevicePairingWordsDialog() {
|
|
|
|
const dialog = new Whisper.DevicePairingWordsDialogView();
|
|
|
|
const dialog = new Whisper.DevicePairingWordsDialogView();
|
|
|
|
this.el.append(dialog.el);
|
|
|
|
this.el.prepend(dialog.el);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showCreateGroup() {
|
|
|
|
showCreateGroup() {
|
|
|
|
// TODO: make it impossible to open 2 dialogs as once
|
|
|
|
// TODO: make it impossible to open 2 dialogs as once
|
|
|
@ -231,7 +230,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showUpdateGroupDialog(groupConvo) {
|
|
|
|
showUpdateGroupDialog(groupConvo) {
|
|
|
|
const dialog = new Whisper.UpdateGroupDialogView(groupConvo);
|
|
|
|
const dialog = new Whisper.UpdateGroupDialogView(groupConvo);
|
|
|
|
this.el.append(dialog.el);
|
|
|
|
this.el.prepend(dialog.el);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showSessionRestoreConfirmation(options) {
|
|
|
|
showSessionRestoreConfirmation(options) {
|
|
|
|
const dialog = new Whisper.ConfirmSessionResetView(options);
|
|
|
|
const dialog = new Whisper.ConfirmSessionResetView(options);
|
|
|
|