Skip to content
Snippets Groups Projects
Commit 31f3fca6 authored by mathias.chouet's avatar mathias.chouet
Browse files

PbSchema: hide "add wall" and "add basin" buttons when displaying results

parent 73abd007
No related branches found
No related tags found
No related merge requests found
......@@ -9,11 +9,11 @@
<div #pbSchemaContainer id="pb-schema-inner-container">
<div id="pb-schema-toolbar">
<button type="button" id="add-basin" mat-raised-button color="accent" (click)="onAddBasinClick()">
<button type="button" *ngIf="enableAddItems" id="add-basin" mat-raised-button color="accent" (click)="onAddBasinClick()">
{{ uitextAddBasin }}
</button>
<button type="button" id="add-wall" mat-raised-button color="accent" (click)="onAddWallClick()" [disabled]="! enableAddWallButton">
<button type="button" *ngIf="enableAddItems" id="add-wall" mat-raised-button color="accent" (click)="onAddWallClick()" [disabled]="! enableAddWallButton">
{{ uitextAddWall }}
</button>
......
......@@ -370,6 +370,10 @@ export class PbSchemaComponent implements AfterViewInit, AfterContentInit, OnIni
this.model = this.pbSchema.pb;
}
public get enableAddItems(): boolean {
return this.calculatorComponent.showPBInputData;
}
public get enableRemoveButton() {
if (this._selectedItem === undefined) {
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment