diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Layout/MainLayout.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Layout/MainLayout.razor index 71df3bdb..c5e29aa0 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Layout/MainLayout.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Layout/MainLayout.razor @@ -21,7 +21,6 @@ - diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptedAlarmEdit.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptedAlarmEdit.razor deleted file mode 100644 index 17aeb627..00000000 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptedAlarmEdit.razor +++ /dev/null @@ -1,236 +0,0 @@ -@page "/scripted-alarms/new" -@page "/scripted-alarms/{ScriptedAlarmId}" -@attribute [Microsoft.AspNetCore.Authorization.Authorize] -@rendermode RenderMode.InteractiveServer -@using Microsoft.AspNetCore.Components.Forms -@using Microsoft.EntityFrameworkCore -@using System.ComponentModel.DataAnnotations -@using ZB.MOM.WW.OtOpcUa.Configuration -@using ZB.MOM.WW.OtOpcUa.Configuration.Entities -@inject IDbContextFactory DbFactory -@inject NavigationManager Nav - -
-

@(IsNew ? "New scripted alarm" : "Edit scripted alarm")

- Cancel -
- -@if (!_loaded) -{ -

Loading…

-} -else if (!IsNew && _existing is null) -{ -
@ScriptedAlarmId not found.
-} -else -{ - - -
-
Identity
-
-
-
- - -
-
- - -
-
-
-
- - - - @foreach (var e in _equipment) { } - -
-
- - - - - - - -
-
- - -
-
-
-
- - - - @foreach (var s in _scripts) { } - -
-
-
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
-
-
- - @if (!string.IsNullOrWhiteSpace(_error)) {
@_error
} - -
- - Cancel - @if (!IsNew) { } -
-
-} - -@code { - [Parameter] public string? ScriptedAlarmId { get; set; } - private bool IsNew => string.IsNullOrEmpty(ScriptedAlarmId); - - private FormModel _form = new(); - private ScriptedAlarm? _existing; - private List _equipment = new(); - private List