CDN Integration for Admin

This commit is contained in:
dingo
2025-12-25 17:39:00 -05:00
parent 5afe3884fa
commit 1d5fbd29ce
11 changed files with 486 additions and 228 deletions
+5 -1
View File
@@ -75,6 +75,10 @@ public class EditModel : AdminPageModel
// Handle checkbox binding
Mob.IsEnabled = Request.Form.ContainsKey("Mob.IsEnabled");
// Ensure nullable strings are never null
Mob.Description ??= "";
Mob.TintColor ??= "#ffffff";
if (string.IsNullOrWhiteSpace(Mob.Name))
{
@@ -90,7 +94,7 @@ public class EditModel : AdminPageModel
var newMob = new DungeonMobDefinition
{
Name = Mob.Name + " (Copy)",
Description = Mob.Description,
Description = Mob.Description ?? "",
Type = Mob.Type,
Category = Mob.Category,
MinTier = Mob.MinTier,