more fix premise account stuff

This commit is contained in:
Wolfgang Hottgenroth 2021-11-09 10:14:16 +01:00
parent 3c97fb3582
commit 6f3248f03c
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
3 changed files with 6 additions and 3 deletions

View File

@ -11,7 +11,8 @@
<mat-card-content>
<mat-accordion>
<mat-expansion-panel (opened)="collapseDetails = true"
(closed)="collapseDetails = false">
(closed)="collapseDetails = false"
[expanded]="premise.id == 0">
<mat-expansion-panel-header>
<mat-panel-title>
Details
@ -42,7 +43,7 @@
</div><div>
<mat-form-field appearance="outline" *ngIf="premise.account">
<mat-label>Betriebskostenkonto</mat-label>
<input matInput name="street" [(ngModel)]="premise.account"/>
<input matInput name="account" [readonly]="true" [(ngModel)]="premise.account"/>
</mat-form-field>
</div>
<button #submitButton type="submit" mat-raised-button color="primary">Speichern</button>

View File

@ -1,5 +1,6 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { MatButton } from '@angular/material/button';
import { MatExpansionPanel } from '@angular/material/expansion';
import { ActivatedRoute, Router } from '@angular/router';
import { AccountService, PremiseService } from '../data-object-service';
import { Account, NULL_Premise, Premise } from '../data-objects';

View File

@ -8,7 +8,8 @@
<mat-card-content>
<mat-accordion>
<mat-expansion-panel (opened)="collapseTenantDetails = true"
(closed)="collapseTenantDetails = false">
(closed)="collapseTenantDetails = false"
[expanded]="tenant.id == 0">
<mat-expansion-panel-header>
<mat-panel-title *ngIf="!collapseTenantDetails">
Details