UI: Fixed show edge details panel

This commit is contained in:
Vladyslav_Prykhodko 2023-04-10 15:38:54 +03:00
parent b86fc8ced9
commit b81ae6cc1e
2 changed files with 6 additions and 10 deletions

View File

@ -46,7 +46,7 @@
[fxShow]="!hideDelete() && !isEdit">
{{'edge.delete' | translate }}
</button>
<div fxLayout="row" fxLayout.xs="column">
<div fxLayout="row wrap" fxLayout.xs="column">
<button mat-raised-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'openEdgeAssets')"
@ -78,7 +78,7 @@
{{'edge.edge-rulechains' | translate }}
</button>
</div>
<div fxLayout="row" fxLayout.xs="column">
<div fxLayout="row wrap" fxLayout.xs="column">
<button mat-raised-button
ngxClipboard
(cbOnSuccess)="onEdgeIdCopied($event)"

View File

@ -142,14 +142,10 @@ export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig<
);
} else if (ruleChainScope === 'edges') {
columns.push(
new EntityTableColumn<RuleChain>('root', 'rulechain.edge-template-root', '70px',
entity => {
return checkBoxCell(entity.root);
}),
new EntityTableColumn<RuleChain>('assignToEdge', 'rulechain.assign-to-edge', '70px',
entity => {
return checkBoxCell(this.isAutoAssignToEdgeRuleChain(entity));
})
new EntityTableColumn<RuleChain>('root', 'rulechain.edge-template-root', '100px',
entity => checkBoxCell(entity.root)),
new EntityTableColumn<RuleChain>('assignToEdge', 'rulechain.assign-to-edge', '100px',
entity => checkBoxCell(this.isAutoAssignToEdgeRuleChain(entity)))
);
}
return columns;