feat: Add prop UIOptions.canvasActions.saveAsImage to show/hide save image button (#3662)

* feat: Add prop UIOptions.canvasActions.saveAsImage which implies whether the save as image dialog should be shown

* Add docs

* fix specs
This commit is contained in:
Aakansha Doshi
2021-05-29 19:41:50 +05:30
committed by GitHub
parent 716c78e930
commit 360310de31
6 changed files with 13 additions and 1 deletions

View File

@ -401,7 +401,7 @@ const LayerUI = ({
};
const renderImageExportDialog = () => {
if (!UIOptions.canvasActions.export) {
if (!UIOptions.canvasActions.saveAsImage) {
return null;
}