Disabled map select when loading a map

This commit is contained in:
Mitchell McCaffrey
2020-07-17 15:57:52 +10:00
parent f25261d70b
commit 61a2e1ac8d
4 changed files with 16 additions and 3 deletions

View File

@@ -32,6 +32,7 @@ function Map({
onFogDrawRedo,
allowMapDrawing,
allowFogDrawing,
allowMapChange,
disabledTokens,
}) {
const { tokensById } = useContext(TokenDataContext);
@@ -141,6 +142,9 @@ function Map({
if (!allowFogDrawing) {
disabledControls.push("fog");
}
if (!allowMapChange) {
disabledControls.push("map");
}
const disabledSettings = { fog: [], drawing: [] };
if (mapShapes.length === 0) {