|
@@ -2631,6 +2631,11 @@ namespace InABox.DynamicGrid
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+ protected virtual bool CanCreateItems()
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
private bool AddEditClick(CoreRow[]? rows)
|
|
|
{
|
|
|
if (!IsEnabled || bRefreshing)
|
|
@@ -2638,6 +2643,10 @@ namespace InABox.DynamicGrid
|
|
|
|
|
|
if (rows == null || !rows.Any())
|
|
|
{
|
|
|
+
|
|
|
+ if (!CanCreateItems())
|
|
|
+ return false;
|
|
|
+
|
|
|
var item = CreateItem();
|
|
|
|
|
|
// Yea, and this won't work, because we're actually usually showing the description of a linked item,
|