@model LocationEditViewModel
@{
ViewData["DesktopLayout"] = "details";
ViewData["Title"] = Model.LocationID == 0 ? "New Location" : "Edit Location";
ViewData["ProjectSection"] = "Locations";
var existing = Model.LocationID > 0;
IReadOnlyList<(string Id, string Label)> tabs = existing
? [("overview", "Overview"), ("reference", "Reference"), ("hierarchy", "Hierarchy")]
: [("overview", "Overview"), ("hierarchy", "Hierarchy")];
}
@if (Model.Project is not null)
{
Save any location changes before updating its references.
@await Component.InvokeAsync("StoryElementReferences", new { entityType = PlotLine.Data.StoryElementType.Location, entityId = Model.LocationID })