We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 773195c commit 019d684Copy full SHA for 019d684
src/components/ContentWrap.jsx
@@ -414,6 +414,10 @@ export default class ContentWrap extends Component {
414
trackEvent('ui', 'paneHeaderDblClick', codeWrapParent.dataset.type);
415
}
416
async exportPngClickHandler(e) {
417
+ if(!window.user) {
418
+ this.props.onLogin();
419
+ return;
420
+ }
421
const png = await this.getPngBlob();
422
saveAs(png, 'zenuml.png');
423
trackEvent('ui', 'downloadPng');
@@ -429,6 +433,10 @@ export default class ContentWrap extends Component {
429
433
430
434
431
435
async copyImageClickHandler(e) {
436
437
438
439
432
440
if (!navigator.clipboard || !navigator.clipboard.write) {
441
this.showCopyErrorNotice();
442
trackEvent('ui', 'copyImageFailed1');
0 commit comments