|
16 | 16 | <div class="form-group row"> |
17 | 17 | <div class="@ColWidthClass()"> |
18 | 18 | <DraggableList AllElements="ConnHandler.AvailableNwElems" @bind-SelectedElements="selectedNwElems" |
19 | | - HandleDragStart="HandleNwDragStart" Display="@DisplayNwObject" MaxHeight="25"/> |
| 19 | + HandleDragStart="HandleNwDragStart" Display="@DisplayNwObject" MaxHeight="25"/> |
20 | 20 | </div> |
21 | 21 | @if(!OverviewMode) |
22 | 22 | { |
|
87 | 87 | <div class="form-group row"> |
88 | 88 | <div class="@ColWidthClass()"> |
89 | 89 | <DraggableList AllElements="ConnHandler.AvailableSvcElems" @bind-SelectedElements="selectedSvcElems" |
90 | | - HandleDragStart="HandleSvcDragStart" Display="@DisplaySvcObject" MaxHeight="25"/> |
| 90 | + HandleDragStart="HandleSvcDragStart" Display="@DisplaySvcObject" MaxHeight="25"/> |
91 | 91 | </div> |
92 | 92 | @if(!OverviewMode) |
93 | 93 | { |
|
151 | 151 | <div class="form-group row"> |
152 | 152 | <div class="@ColWidthClass()"> |
153 | 153 | <DraggableList AllElements="ConnHandler.PreselectedInterfaces" @bind-SelectedElements="selectedInterfaces" |
154 | | - HandleDragStart="HandleConnDragStart" Display="@DisplayInterfaceWithIcon" MaxHeight="15" Multiselect="false"/> |
| 154 | + HandleDragStart="HandleConnDragStart" Display="@DisplayInterfaceWithIcon" MaxHeight="15" Multiselect="false"/> |
155 | 155 | </div> |
156 | 156 | @if(!OverviewMode) |
157 | 157 | { |
|
189 | 189 | <div class="form-group row" data-toggle="tooltip" title="@(userConfig.PureLine("C9010"))"> |
190 | 190 | <div class="col-sm-10"> |
191 | 191 | <DraggableList AllElements="ConnHandler.Connections.Where(c => c.IsInterface && !c.IsRequested).ToList()" @bind-SelectedElements="selectedInterfaces" |
192 | | - HandleDragStart="HandleConnDragStart" Display="@DisplayInterfaceWithIcon" MaxHeight="15" Multiselect="false"/> |
| 192 | + HandleDragStart="HandleConnDragStart" Display="@DisplayInterfaceWithIcon" MaxHeight="15" Multiselect="false"/> |
193 | 193 | </div> |
194 | 194 | <div class="col-sm-2"> |
195 | 195 | @if(selectedInterfaces.Count == 1) |
|
212 | 212 | </Sidebar> |
213 | 213 | <EditAppRole @bind-Display="ConnHandler.EditAppRoleMode" @bind-AppRoleHandler="ConnHandler.AppRoleHandler" RefreshParent="RefreshParentWithoutRefreshingActConn"/> |
214 | 214 | <ConfirmDelete @bind-Display="ConnHandler.DeleteAppRoleMode" PerformAction="async () => await WrapAsync(ConnHandler.DeleteAppRole)" |
215 | | - Title="@userConfig.GetText("delete_app_role")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" DeleteAllowed="ConnHandler.DeleteAllowed" Enabled="ConnHandler.IsOwner"/> |
| 215 | + Title="@userConfig.GetText("delete_app_role")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" DeleteAllowed="ConnHandler.DeleteAllowed" Enabled="ConnHandler.IsOwner"/> |
216 | 216 | <EditServiceGroup @bind-Display="ConnHandler.EditSvcGrpMode" @bind-SvcGroupHandler="ConnHandler.SvcGrpHandler"/> |
217 | 217 | <ConfirmDelete @bind-Display="ConnHandler.DeleteSvcGrpMode" PerformAction="async () => await WrapAsync(ConnHandler.DeleteServiceGroup)" |
218 | | - Title="@userConfig.GetText("delete_service_group")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" DeleteAllowed="ConnHandler.DeleteAllowed" Enabled="ConnHandler.IsOwner"/> |
| 218 | + Title="@userConfig.GetText("delete_service_group")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" DeleteAllowed="ConnHandler.DeleteAllowed" Enabled="ConnHandler.IsOwner"/> |
219 | 219 | <EditService @bind-Display="ConnHandler.EditServiceMode" ServiceHandler="ConnHandler.ServiceHandler" RefreshParent="RefreshParentWithoutRefreshingActConn"/> |
220 | 220 | <ConfirmDelete @bind-Display="ConnHandler.DeleteServiceMode" PerformAction="async () => await WrapAsync(ConnHandler.DeleteService)" |
221 | | - Title="@userConfig.GetText("delete_service")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" DeleteAllowed="ConnHandler.DeleteAllowed" Enabled="ConnHandler.IsOwner"/> |
| 221 | + Title="@userConfig.GetText("delete_service")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" DeleteAllowed="ConnHandler.DeleteAllowed" Enabled="ConnHandler.IsOwner"/> |
222 | 222 | <SearchInterface @bind-Display="SearchInterfaceMode" @bind-PreselectedInterfaces="ConnHandler.PreselectedInterfaces" Application="ConnHandler.Application"/> |
223 | 223 | <ConfirmDelete @bind-Display="ConnHandler.RemovePreselectedInterfaceMode" PerformAction="async () => await WrapAsync(ConnHandler.RemovePreselectedInterface)" |
224 | | - Title="@userConfig.GetText("remove_connection")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" Remove="true" Enabled="ConnHandler.IsOwner"/> |
| 224 | + Title="@userConfig.GetText("remove_connection")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" Remove="true" Enabled="ConnHandler.IsOwner"/> |
225 | 225 | <SearchNwObject @bind-Display="SearchNwObjectMode" @bind-ObjectList="ConnHandler.AvailableSelectedObjects" |
226 | | - Application="ConnHandler.Application" Refresh="ConnHandler.RefreshSelectableNwObjects"/> |
| 226 | + Application="ConnHandler.Application" Refresh="ConnHandler.RefreshSelectableNwObjects"/> |
227 | 227 | <ConfirmDelete @bind-Display="ConnHandler.RemoveNwObjectMode" PerformAction="async () => await WrapAsync(ConnHandler.RemoveNwGrpObject)" |
228 | | - Title="@userConfig.GetText("remove_nw_object")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" Remove="true" Enabled="ConnHandler.IsOwner"/> |
| 228 | + Title="@userConfig.GetText("remove_nw_object")" DeleteMessage="@ConnHandler.Message" AllowedRoles="@Roles.Modeller" Remove="true" Enabled="ConnHandler.IsOwner"/> |
229 | 229 | <RequestInterfacePopup @bind-Display="SelectAppMode" Apps="ConnHandler.AllApps" RequestingOwner="ConnHandler.Application" RefreshParent="async () => await WrapAsync(ConnHandler.RefreshPreselectedInterfaces)"/> |
230 | 230 | <EditConnPopup @bind-Display="ConnHandler.DisplaySelectedInterfaceMode" ConnHandler="ConnHandler.IntConnHandler"/> |
231 | 231 | } |
|
284 | 284 | } |
285 | 285 | } |
286 | 286 |
|
287 | | - |
| 287 | + |
288 | 288 | private string DisplayInterfaceWithIcon(ModellingConnection interf) |
289 | 289 | { |
290 | 290 | return $"<span class=\"{Icons.Interface}\"></span> " + ConnHandler?.DisplayInterface(interf); |
|
305 | 305 |
|
306 | 306 | private void NetworkElemsToConn(bool toSource) |
307 | 307 | { |
| 308 | + if (!ConnHandler.NetworkAreaUseAllowed(Container)) |
| 309 | + { |
| 310 | + return; |
| 311 | + } |
| 312 | + |
308 | 313 | List<ModellingNwGroup> nwGroups = []; |
309 | 314 | List<ModellingAppRole> appRoles = []; |
310 | 315 | List<ModellingNetworkArea> areas = []; |
|
0 commit comments