File tree Expand file tree Collapse file tree
src/XtremeIdiots.Portal.Web/Views/MapRotations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44@{
55 ViewData [" Title" ] = " Assignment Status - " + Model .GameServerDisplayName ;
66 var pendingInstanceId = TempData [" PendingInstanceId" ] as string ;
7+ var hasPendingWithNoRow = ! string .IsNullOrEmpty (pendingInstanceId )
8+ && ! Model .Operations .Any (o => o .Status == AssignmentOperationStatus .InProgress
9+ && o .DurableFunctionInstanceId == pendingInstanceId );
710}
811
912<div class =" wrapper wrapper-content animated fadeInRight" >
148151 <h5 >Recent Operations (@Model.Operations.Count) </h5 >
149152 </div >
150153 <div class =" ibox-content" >
151- @if (Model .Operations .Count == 0 && string . IsNullOrEmpty ( pendingInstanceId ) )
154+ @if (Model .Operations .Count == 0 && ! hasPendingWithNoRow )
152155 {
153156 <p class =" text-muted" >No operations recorded for this assignment.</p>
154157 }
169172 </tr >
170173 </thead >
171174 <tbody >
172- @if (Model . Operations . Count == 0 && ! string . IsNullOrEmpty ( pendingInstanceId ) )
175+ @if (hasPendingWithNoRow )
173176 {
174177 <tr class =" table-info pending-bootstrap-row" data-instance-id =" @pendingInstanceId" >
175178 <td >—</td >
You can’t perform that action at this time.
0 commit comments