@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) { }
@if (existing) { }
Names
@for (var i = 0; i < Model.Aliases.Count; i++) { @Model.Aliases[i] }
Makes this item available as a draggable shortcut on the Timeline page.
Companion matching

Companion Detection

Use this for generic places that would create noisy suggestions, such as Home, Kitchen, Road or Shop.
Higher values make this location stronger evidence in future Word Companion detection. The default is 50.
Cancel
@if (existing) {

Save any location changes before updating its references.

@await Component.InvokeAsync("StoryElementReferences", new { entityType = PlotLine.Data.StoryElementType.Location, entityId = Model.LocationID })
} @section Scripts { }