buttons
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
@using SharpIDE.Application.Features.Events
|
@using SharpIDE.Application.Features.Events
|
||||||
|
@using SharpIDE.Application.Features.Run
|
||||||
@using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence
|
@using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence
|
||||||
|
|
||||||
|
@inject RunService RunService
|
||||||
|
|
||||||
@implements IDisposable
|
@implements IDisposable
|
||||||
|
|
||||||
<div @onmouseover="@(() => _open = true)">
|
<div @onmouseover="@(() => _open = true)">
|
||||||
@@ -18,9 +21,18 @@
|
|||||||
<MudStack Row="true" Spacing="1" AlignItems="AlignItems.Center" Class="pa-0 ma-0">
|
<MudStack Row="true" Spacing="1" AlignItems="AlignItems.Center" Class="pa-0 ma-0">
|
||||||
<MudText>@project.Name</MudText>
|
<MudText>@project.Name</MudText>
|
||||||
<MudSpacer/>
|
<MudSpacer/>
|
||||||
<MudButton Style="min-width: 20px;">
|
@if (project.Running)
|
||||||
<MudIcon Icon="@(project.Running ? Icons.Material.Filled.Stop : Icons.Material.Filled.PlayArrow)" Size="Size.Medium" Color="@(project.Running ? Color.Error : Color.Success)"/>
|
{
|
||||||
</MudButton>
|
<MudButton Style="min-width: 20px;">
|
||||||
|
<MudIcon Icon="@Icons.Material.Filled.Stop" Size="Size.Medium" Color="Color.Error"/>
|
||||||
|
</MudButton>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<MudButton Style="min-width: 20px;" OnClick="@(async () => await RunService.RunProject(project))">
|
||||||
|
<MudIcon Icon="@Icons.Material.Filled.PlayArrow" Size="Size.Medium" Color="Color.Success"/>
|
||||||
|
</MudButton>
|
||||||
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudListItem>
|
</MudListItem>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user