|
|
@@ -3701,15 +3701,16 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|
3701
|
3701
|
options.push(actionCopyAsSvg);
|
|
3702
|
3702
|
}
|
|
3703
|
3703
|
if (!element) {
|
|
3704
|
|
- const viewModeOptions: ContextMenuOption[] = [
|
|
|
3704
|
+ const viewModeOptions = [
|
|
3705
|
3705
|
...options,
|
|
|
3706
|
+ typeof this.props.gridModeEnabled === "undefined" &&
|
|
|
3707
|
+ actionToggleGridMode,
|
|
|
3708
|
+ typeof this.props.zenModeEnabled === "undefined" && actionToggleZenMode,
|
|
|
3709
|
+ typeof this.props.viewModeEnabled === "undefined" &&
|
|
|
3710
|
+ actionToggleViewMode,
|
|
3706
|
3711
|
actionToggleStats,
|
|
3707
|
3712
|
];
|
|
3708
|
3713
|
|
|
3709
|
|
- if (typeof this.props.viewModeEnabled === "undefined") {
|
|
3710
|
|
- viewModeOptions.push(actionToggleViewMode);
|
|
3711
|
|
- }
|
|
3712
|
|
-
|
|
3713
|
3714
|
ContextMenu.push({
|
|
3714
|
3715
|
options: viewModeOptions,
|
|
3715
|
3716
|
top: clientY,
|