File tree Expand file tree Collapse file tree
library/Notifications/Widget Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77use DateInterval ;
88use DateTime ;
99use Generator ;
10- use Icinga \Module \Notifications \Widget \Timeline \FutureEntry ;
1110use ipl \Html \Attributes ;
1211use ipl \Html \BaseHtmlElement ;
1312use ipl \Html \HtmlElement ;
@@ -422,20 +421,6 @@ final protected function yieldFixedEntries(Traversable $entries): Generator
422421 }
423422
424423 $ rowStart = $ position + $ rowStartModifier ;
425-
426- if ($ entry instanceof FutureEntry) {
427- $ gridArea = $ this ->getGridArea (
428- $ rowStart ,
429- $ rowStart + 1 ,
430- 1 ,
431- $ gridBorderAt + 1
432- );
433-
434- yield $ gridArea => $ entry ;
435-
436- continue ;
437- }
438-
439424 if ($ rowStart > $ lastRow ) {
440425 $ lastRow = $ rowStart ;
441426 }
Original file line number Diff line number Diff line change @@ -187,7 +187,10 @@ public function getEntries(): Traversable
187187 }
188188
189189 if (! $ entryFound && ! $ this ->minimalLayout ) {
190- yield (new FutureEntry ())->setPosition ($ maxPriority - $ rotation ->getPriority ());
190+ yield (new FutureEntry ())
191+ ->setStart ($ this ->getGrid ()->getGridStart ())
192+ ->setEnd ($ this ->getGrid ()->getGridEnd ())
193+ ->setPosition ($ maxPriority - $ rotation ->getPriority ());
191194 }
192195 }
193196
You can’t perform that action at this time.
0 commit comments