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