|
|
@ -119,13 +119,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
const props = {
|
|
|
|
const props = {
|
|
|
|
imageURL: this.objectUrl,
|
|
|
|
imageURL: this.objectUrl,
|
|
|
|
|
|
|
|
save: () => this.saveFile(),
|
|
|
|
|
|
|
|
// implicit: `close`
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.lightboxView = new Whisper.ReactWrapperView({
|
|
|
|
this.lightboxView = new Whisper.ReactWrapperView({
|
|
|
|
Component: Signal.Components.Lightbox,
|
|
|
|
Component: Signal.Components.Lightbox,
|
|
|
|
props,
|
|
|
|
props,
|
|
|
|
onClose: () => {
|
|
|
|
onClose: () => Signal.Backbone.Views.Lightbox.hide(),
|
|
|
|
Signal.Backbone.Views.Lightbox.hide();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
Signal.Backbone.Views.Lightbox.show(this.lightboxView.el);
|
|
|
|
Signal.Backbone.Views.Lightbox.show(this.lightboxView.el);
|
|
|
|
},
|
|
|
|
},
|
|
|
|