@page "/design/schema-library" @using ZB.MOM.WW.ScadaBridge.Security @using ZB.MOM.WW.ScadaBridge.CentralUI.Services @using ZB.MOM.WW.ScadaBridge.Commons.Entities.Schemas @attribute [Authorize(Policy = AuthorizationPolicies.RequireDesign)] @inject ISchemaLibraryService SchemaLibraryService @inject IDialogService Dialog @* Schema Library: list + create/edit (via SchemaBuilder) + delete the reusable named JSON-Schema library entries that the {"$ref":"lib:Name"} resolver resolves against. Every mutation is dispatched through ISchemaLibraryService — the guard-running ManagementActor path — never a direct repo write. *@
lib:@(string.IsNullOrWhiteSpace(_formName) ? "Name" : _formName.Trim()).No library schemas defined.
@if (!_editing) { }| Name | Scope | Reference | Actions |
|---|---|---|---|
| @s.Name | @(string.IsNullOrWhiteSpace(s.Scope) ? "—" : s.Scope) | lib:@s.Name |
@* Row actions are disabled while the editor is open so the row under edit (and its siblings) can't be deleted out from under the form, and while a delete is in flight (_busy). *@ |