28 lines
532 B
Plaintext
28 lines
532 B
Plaintext
@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();
|
|
|
|
}
|
|
}
|