Mark cancelled Layers in web app
This commit is contained in:
@@ -21,6 +21,7 @@ export class Layer extends Base {
|
||||
created?: string;
|
||||
modified?: string;
|
||||
type?: LayerType;
|
||||
isCancelled: boolean = false;
|
||||
|
||||
constructor(data: Partial<Layer> = {}) {
|
||||
super();
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div *ngIf="document && document.isCancelled">
|
||||
This layer is cancelled. Will not be used in any further processing.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
@@ -22,12 +22,12 @@
|
||||
<table mat-table [dataSource]="dataSource">
|
||||
<ng-container matColumnDef="number">
|
||||
<th mat-header-cell *matHeaderCellDef>Number</th>
|
||||
<td mat-cell *matCellDef="let element">{{element.number}}</td>
|
||||
<td mat-cell *matCellDef="let element" [class.cancelled]="element.isCancelled">{{element.number}}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="name">
|
||||
<th mat-header-cell *matHeaderCellDef>Name</th>
|
||||
<td mat-cell *matCellDef="let element">{{element.name}}</td>
|
||||
<td mat-cell *matCellDef="let element" [class.cancelled]="element.isCancelled">{{element.name}}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="type">
|
||||
|
||||
@@ -2,3 +2,8 @@
|
||||
width: 95%;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.cancelled {
|
||||
text-decoration: line-through;
|
||||
opacity: 0.6;
|
||||
}
|
||||
@@ -7,8 +7,8 @@ export const environment = {
|
||||
appName: "LOCAL_DiunaBI",
|
||||
production: false,
|
||||
api: {
|
||||
url: "http://localhost:5400/api"
|
||||
//url: "https://diunabi-morska.bim-it.pl/api"
|
||||
//url: "http://localhost:5400/api"
|
||||
url: "https://diunabi-morska.bim-it.pl/api"
|
||||
},
|
||||
google: {
|
||||
clientId: "107631825312-bkfe438ehr9k9ecb2h76g802tj6advma.apps.googleusercontent.com"
|
||||
|
||||
Reference in New Issue
Block a user