Skip to content

Commit

Permalink
fix: other sections are disabled when creating a new entity
Browse files Browse the repository at this point in the history
fixes: #1108 

Co-authored-by: Sebastian Leidig <sebastian.leidig@gmail.com>
  • Loading branch information
TheSlimvReal and sleidig authored Mar 24, 2022
1 parent c3d9491 commit edec7da
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,15 @@

<div>
<mat-tab-group>
<mat-tab *ngFor="let panelConfig of panels; let i = index" [label]="panelConfig.title">
<mat-tab *ngFor="let panelConfig of panels; let i = index" [disabled]="creatingNew">
<ng-template mat-tab-label>
<label [matTooltipDisabled]="!creatingNew"
matTooltip="Save the new record to create it before accessing other details"
i18n-matTooltip="Tooltip explaining disabled sections when creating new entity">
{{panelConfig.title}}
</label>
</ng-template>

<div *ngFor="let componentConfig of panelConfig.components; let j = index" style="padding-top: 20px">
<h3 *ngIf="componentConfig.title && componentConfig.title !== ''">{{ componentConfig.title }}</h3>
<ng-template [appDynamicComponent]="componentConfig"></ng-template>
Expand Down

0 comments on commit edec7da

Please sign in to comment.