Skip to content
Snippets Groups Projects

Resolve "disable "Add overlay" button or improve error message `403` when number of custom layout is greater equal `CUSTOM_LAYOUTS`"

Merged Piotr Gawron requested to merge 611-custom-overlays into devel_12.1.x
2 files
+ 8
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -292,7 +292,7 @@ AddOverlayDialog.prototype.open = function () {
var errorMessage = JSON.parse(error.content);
GuiConnector.alert("Problematic input: <br/>" + errorMessage.reason);
} else if (error instanceof SecurityError) {
GuiConnector.alert("You cannot add more overlays");
GuiConnector.alert("You cannot add more overlays, Custom Overlay limit is reached.");
} else {
GuiConnector.alert(error);
}
Loading