[ACA-3296] Header - support actions order (#1464)

* header action order property

* apply sort for parents and children

* update tests

* use parent class to set style

* render user component through configuration

* header should allow disable actions rendering

* update e2e header resource
This commit is contained in:
Cilibiu Bogdan
2020-05-19 18:56:03 +03:00
committed by GitHub
parent 523d9e5bcb
commit 234b41b917
8 changed files with 140 additions and 17 deletions

View File

@@ -13,8 +13,6 @@
<adf-toolbar-divider></adf-toolbar-divider>
<aca-current-user></aca-current-user>
<ng-container *ngFor="let actionRef of actions; trackBy: trackByActionId">
<aca-toolbar-action [actionRef]="actionRef" color="default">
</aca-toolbar-action>

View File

@@ -1,9 +1,8 @@
@mixin toolbar-actions-theme($theme) {
$foreground: map-get($theme, foreground);
app-toolbar-button,
app-toolbar-menu,
adf-dynamic-component {
.aca-toolbar-action {
color: mat-color($foreground, text, 0.72);
margin: 0 5px;
}
}