[FZ Editor] Limit zones number for custom layouts. (#9364)

* disable add zone button

* unify zone adding
This commit is contained in:
Seraphima Zykova
2021-01-29 15:10:37 +03:00
committed by GitHub
parent b38da96933
commit 53c239f052
5 changed files with 74 additions and 41 deletions

View File

@@ -91,7 +91,7 @@ namespace FancyZonesEditor
return;
}
if (model.TemplateZoneCount < LayoutSettings.MaxZones)
if (model.IsZoneAddingAllowed)
{
model.TemplateZoneCount++;
}