Update frontend environments
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<button mat-icon-button (click)="snav.toggle()">
|
||||
<mat-icon>menu</mat-icon>
|
||||
</button>
|
||||
<h1 class="topbar-app-name">DiunaBI {{environment.appTitle}}</h1>
|
||||
<h1 class="topbar-app-name">DiunaBI {{environment.appEnvironment}}</h1>
|
||||
<span class="fill-to-right"></span>
|
||||
<span class="topbar-user-name" *ngIf="auth$.user">
|
||||
<img *ngIf="auth$.user.avatar" src="{{auth$.user.avatar}}" class="avatar">
|
||||
|
||||
@@ -42,6 +42,11 @@
|
||||
<mat-cell *matCellDef="let item">{{item.value | number:'1.2-2'}}</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="desc1">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header>Konto</mat-header-cell>
|
||||
<mat-cell *matCellDef="let item">{{item.desc1}}</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||
<mat-row *matRowDef="let item; columns: displayedColumns;"></mat-row>
|
||||
</mat-table>
|
||||
|
||||
@@ -10,6 +10,7 @@ import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { AuthService } from 'src/app/auth/auth.service';
|
||||
import { Layer } from 'src/app/models/layer.model';
|
||||
import { Record } from 'src/app/models/record.model';
|
||||
import { environment } from 'src/environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-layer-detail',
|
||||
@@ -21,7 +22,7 @@ export class LayerDetailComponent implements OnInit {
|
||||
public form!: UntypedFormGroup;
|
||||
public document!: Layer;
|
||||
|
||||
displayedColumns = ['code', 'value'];
|
||||
displayedColumns = environment.views.layers.recordColumns.split("|");
|
||||
dataSource!: MatTableDataSource<Record>;
|
||||
|
||||
@ViewChild(MatSort) sort!: MatSort;
|
||||
|
||||
@@ -9,6 +9,7 @@ import moment from 'moment';
|
||||
import { AuthService } from 'src/app/auth/auth.service';
|
||||
import { Layer } from 'src/app/models/layer.model';
|
||||
import { Record } from 'src/app/models/record.model';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
@Component({
|
||||
@@ -21,7 +22,7 @@ export class LayerEditComponent implements OnInit {
|
||||
public form!: UntypedFormGroup;
|
||||
private document!: Layer;
|
||||
|
||||
displayedColumns = ['code', 'value', 'desc1'];
|
||||
displayedColumns = environment.views.layers.recordColumns.split("|");
|
||||
dataSource!: MatTableDataSource<Record>;
|
||||
|
||||
@ViewChild(MatSort) sort!: MatSort;
|
||||
|
||||
Reference in New Issue
Block a user