Show What's New dialog in app via Help -> Go to release notes
This commit is contained in:
parent
3e38a4b761
commit
191bfee18c
14 changed files with 249 additions and 142 deletions
|
@ -160,16 +160,18 @@ Whisper.InboxView = Whisper.View.extend({
|
|||
click: 'onClick',
|
||||
},
|
||||
renderWhatsNew() {
|
||||
if (this.whatsNewView) {
|
||||
if (this.whatsNewLink) {
|
||||
return;
|
||||
}
|
||||
this.whatsNewView = new Whisper.ReactWrapperView({
|
||||
Component: window.Signal.Components.WhatsNew,
|
||||
const { showWhatsNewModal } = window.reduxActions.globalModals;
|
||||
this.whatsNewLink = new Whisper.ReactWrapperView({
|
||||
Component: window.Signal.Components.WhatsNewLink,
|
||||
props: {
|
||||
i18n: window.i18n,
|
||||
showWhatsNewModal,
|
||||
},
|
||||
});
|
||||
this.$('.whats-new-placeholder').append(this.whatsNewView.el);
|
||||
this.$('.whats-new-placeholder').append(this.whatsNewLink.el);
|
||||
},
|
||||
setupLeftPane() {
|
||||
if (this.leftPaneView) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue