timelapse/Timelapse/Pages/ConfigureProject.razor

28 lines
532 B
Plaintext
Raw Permalink Normal View History

2021-12-28 07:25:39 +00:00
@page "/editproject"
@using Timelapse.Api;
@using ElectronNET.API;
@using Timelapse.Data;
@inject ExtensionProjectService EPS;
@inject NavigationManager NavigationManager
<h1>Configure Project</h1>
@if(EPS.IsProjectLoaded)
{
<ProjectComponent Value="@EPS.Project" />
<button class="btn btn-primary" @onclick="SaveProject">Save</button>
}else{
<h4>Please Load A Project</h4>
}
@code {
public TimelapseProject Project {get;set;}
private void SaveProject()
{
EPS.SaveProject();
}
}