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
@@ -49,6 +49,11 @@ public class EditModel : AdminPageModel
Item.IsEnabled = Request.Form.ContainsKey("Item.IsEnabled");
Item.Stackable = Request.Form.ContainsKey("Item.Stackable");
Item.IsTeleportScroll = Request.Form.ContainsKey("Item.IsTeleportScroll");
// Ensure nullable strings are never null
Item.Description ??= "";
Item.SpritePath ??= "";
Item.TintColor ??= "#ffffff";
if (string.IsNullOrWhiteSpace(Item.Name))
{