|
119 | 119 | @if((ConnHandler.ActConn.InterfaceIsRequested && ConnHandler.ActConn.SrcFromInterface) || (ConnHandler.ActConn.IsRequested && ConnHandler.ActConn.SourceFilled())) |
120 | 120 | { |
121 | 121 | @((MarkupString)ModellingHandlerBase.DisplayReqInt(userConfig, ConnHandler.ActConn.TicketId, ConnHandler.ActConn.InterfaceIsRequested, |
122 | | - ConnHandler.ActConn.GetBoolProperty(ConState.InterfaceRejected.ToString()) || ConnHandler.ActConn.GetBoolProperty(ConState.Rejected.ToString()))) |
| 122 | + ConnHandler.ActConn.GetBoolProperty(ConState.InterfaceRejected.ToString()) || ConnHandler.ActConn.GetBoolProperty(ConState.Rejected.ToString()))) |
123 | 123 | } |
124 | 124 | else |
125 | 125 | { |
|
217 | 217 | @if(ConnHandler.ActConn.InterfaceIsRequested || ConnHandler.ActConn.IsRequested) |
218 | 218 | { |
219 | 219 | @((MarkupString)ModellingHandlerBase.DisplayReqInt(userConfig, ConnHandler.ActConn.TicketId, ConnHandler.ActConn.InterfaceIsRequested, |
220 | | - ConnHandler.ActConn.GetBoolProperty(ConState.InterfaceRejected.ToString()) || ConnHandler.ActConn.GetBoolProperty(ConState.Rejected.ToString()))) |
| 220 | + ConnHandler.ActConn.GetBoolProperty(ConState.InterfaceRejected.ToString()) || ConnHandler.ActConn.GetBoolProperty(ConState.Rejected.ToString()))) |
221 | 221 | } |
222 | 222 | else |
223 | 223 | { |
|
277 | 277 | @if((ConnHandler.ActConn.InterfaceIsRequested && ConnHandler.ActConn.DstFromInterface) || (ConnHandler.ActConn.IsRequested && ConnHandler.ActConn.DestinationFilled())) |
278 | 278 | { |
279 | 279 | @((MarkupString)ModellingHandlerBase.DisplayReqInt(userConfig, ConnHandler.ActConn.TicketId, ConnHandler.ActConn.InterfaceIsRequested, |
280 | | - ConnHandler.ActConn.GetBoolProperty(ConState.InterfaceRejected.ToString()) || ConnHandler.ActConn.GetBoolProperty(ConState.Rejected.ToString()))) |
| 280 | + ConnHandler.ActConn.GetBoolProperty(ConState.InterfaceRejected.ToString()) || ConnHandler.ActConn.GetBoolProperty(ConState.Rejected.ToString()))) |
281 | 281 | } |
282 | 282 | else |
283 | 283 | { |
|
506 | 506 | } |
507 | 507 | if(Container.AreaElements.Count > 0) |
508 | 508 | { |
| 509 | + |
| 510 | + |
509 | 511 | if (ConnHandler is not null && !ConnHandler.NetworkAreaUseAllowed(Container.AreaElements, Direction.Source, out (string Title, string Text) reason)) |
510 | 512 | { |
511 | 513 | DisplayMessageInUi(default, reason.Title, reason.Text, true); |
|
548 | 550 | } |
549 | 551 | if(Container.AreaElements.Count > 0) |
550 | 552 | { |
| 553 | + var bla = ConnHandler.IsAreaForbiddenInDirection(Container.AreaElements, Direction.Destination); |
| 554 | + |
551 | 555 | if (ConnHandler is not null && !ConnHandler.NetworkAreaUseAllowed(Container.AreaElements, Direction.Destination, out (string Title, string Text) reason)) |
552 | 556 | { |
553 | 557 | DisplayMessageInUi(default, reason.Title, reason.Text, true); |
|
0 commit comments