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; created?: string;
modified?: string; modified?: string;
type?: LayerType; type?: LayerType;
isCancelled: boolean = false;
constructor(data: Partial<Layer> = {}) { constructor(data: Partial<Layer> = {}) {
super(); super();

View File

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

View File

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

View File

@@ -1,4 +1,9 @@
.search-field { .search-field {
width: 95%; width: 95%;
margin: 5px; margin: 5px;
}
.cancelled {
text-decoration: line-through;
opacity: 0.6;
} }

View File

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