Improved ux for ticket popup
This commit is contained in:
parent
068858f3a1
commit
6ec86fdc25
1 changed files with 24 additions and 23 deletions
|
@ -1,36 +1,37 @@
|
|||
@using Moonlight.Features.Ticketing.Entities
|
||||
|
||||
<div class="mb-4 me-4 d-flex justify-content-end fixed-bottom" style="pointer-events: none;">
|
||||
<CascadingValue Value="this">
|
||||
@if (ViewIndex == 0)
|
||||
{
|
||||
<button @onclick="() => SetViewIndex(1)" class="btn btn-lg btn-icon btn-rounded-circle bg-secondary btn-white border border-2 border-warning" style="pointer-events: all">
|
||||
<i class="bx bg-lg bx-chat"></i>
|
||||
</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="card border border-2 border-warning" style="pointer-events: all; height: 70vh">
|
||||
@if (ViewIndex == 1)
|
||||
{
|
||||
<TicketPopupOverview />
|
||||
}
|
||||
else if (ViewIndex == 2)
|
||||
{
|
||||
<TicketPopupView />
|
||||
}
|
||||
else if (ViewIndex == 3)
|
||||
{
|
||||
<TicketPopupCreate />
|
||||
}
|
||||
</div>
|
||||
}
|
||||
{
|
||||
<button @onclick="() => SetViewIndex(1)" class="btn btn-lg btn-icon btn-rounded-circle bg-secondary btn-white border border-2 border-warning hover-scale opacity-50 opacity-100-hover" style="pointer-events: all">
|
||||
<i class="bx bg-lg bx-chat"></i>
|
||||
</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="card border border-2 border-warning" style="pointer-events: all; height: 70vh">
|
||||
@if (ViewIndex == 1)
|
||||
{
|
||||
<TicketPopupOverview/>
|
||||
}
|
||||
else if (ViewIndex == 2)
|
||||
{
|
||||
<TicketPopupView/>
|
||||
}
|
||||
else if (ViewIndex == 3)
|
||||
{
|
||||
<TicketPopupCreate/>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</CascadingValue>
|
||||
</div>
|
||||
|
||||
@code
|
||||
{
|
||||
private int ViewIndex = 0;
|
||||
|
||||
|
||||
public Ticket CurrentTicket { get; private set; }
|
||||
|
||||
public async Task SetViewIndex(int index)
|
||||
|
|
Loading…
Reference in a new issue