Mark cancelled Layers in web app

This commit is contained in:
Michał Zieliński
2025-05-29 12:01:49 +02:00
parent 72c6ff73ac
commit 2fb9bd502c
5 changed files with 13 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ export class Layer extends Base {
created?: string;
modified?: string;
type?: LayerType;
isCancelled: boolean = false;
constructor(data: Partial<Layer> = {}) {
super();

View File

@@ -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">

View File

@@ -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">

View File

@@ -2,3 +2,8 @@
width: 95%;
margin: 5px;
}
.cancelled {
text-decoration: line-through;
opacity: 0.6;
}

View File

@@ -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"