Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GEMIMEG Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
D-PTB
DCC
GEMIMEG-Tool 2.0
GEMIMEG Frontend
Commits
c77e4bed
Commit
c77e4bed
authored
5 months ago
by
Samuel Eickelberg
Browse files
Options
Downloads
Patches
Plain Diff
Removed patch file.
parent
ccadefb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
59.patch
+0
-84
0 additions, 84 deletions
59.patch
with
0 additions
and
84 deletions
59.patch
deleted
100644 → 0
+
0
−
84
View file @
ccadefb9
From 1ed41e2cb9e632f3a1b166c22ec20c3d77f9397d Mon Sep 17 00:00:00 2001
From: rehman01 <adul.rehman@ptb.de>
Date: Fri, 17 Jan 2025 11:20:17 +0100
Subject: [PATCH] Bug gefixt,
---
src/app/components/dcc/dcc.component.html | 2 +-
src/app/components/dcc/dcc.component.scss | 3 +++
src/app/components/dcc/dcc.component.ts | 11 ++++++++++-
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/app/components/dcc/dcc.component.html b/src/app/components/dcc/dcc.component.html
index 28b6335..f9e4503 100644
--- a/src/app/components/dcc/dcc.component.html
+++ b/src/app/components/dcc/dcc.component.html
@@ -23,7 +23,7 @@
</button>
</mat-card-content>
</mat-card>
- <mat-stepper #stepper linear [selectedIndex]="currentStepIndex">
+ <mat-stepper #stepper linear [selectedIndex]="currentStepIndex" (selectionChange)="onStepChange($event)">
<mat-step>
<ng-template matStepLabel>Administrative Daten*</ng-template>
<mat-card class="blue-card">
diff --git a/src/app/components/dcc/dcc.component.scss b/src/app/components/dcc/dcc.component.scss
index aef1532..e57eda5 100644
--- a/src/app/components/dcc/dcc.component.scss
+++ b/src/app/components/dcc/dcc.component.scss
@@ -96,6 +96,7 @@
mat-stepper {
width: 100%;
display: inline-flex;
background-color: #f5f5f5;
+ //background-color: #1976d2;
justify-content: space-between;
justify-content: center;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
@@ -115,6 +116,8 @@
mat-stepper {
font-size: 15px;
border-radius: 5px;
background-color: #1976d2;
+ // background-color: #FFC107;
+ //color:black;
color: #ffffff;
}
.footer-navigation button:disabled {
diff --git a/src/app/components/dcc/dcc.component.ts b/src/app/components/dcc/dcc.component.ts
index 37c7647..9bb472c 100644
--- a/src/app/components/dcc/dcc.component.ts
+++ b/src/app/components/dcc/dcc.component.ts
@@ -36,6 +36,7 @@
import { ByteDataDto } from 'src/app/generated/dcc/model/byteDataDto';
import { ListDto } from 'src/app/generated/dcc/model/listDto';
import { DccMeasurementMetadataComponent } from './dcc-measurement-metadata/dcc-measurement-metadata.component';
import { MatStepper } from '@angular/material/stepper';
+import { StepperSelectionEvent } from '@angular/cdk/stepper';
@@ -57,7 +58,7 @@
export class DccComponent implements OnInit,AfterContentChecked {
header_statement = "Statement";
currentStepIndex = 0;
totalSteps = 4;
-
+ isLastStep =false
statement!: StatementDto;
cipmForm!: FormGroup;
addressForm!: FormGroup;
@@ -677,6 +678,14 @@
export class DccComponent implements OnInit,AfterContentChecked {
stepper.next();
}
}
+ onStepChange(event: StepperSelectionEvent): void {
+ this.currentStepIndex = event.selectedIndex;
+ this.updateStepState();
+ }
+
+ private updateStepState(): void {
+ this.isLastStep = this.currentStepIndex === this.totalSteps - 1;
+ }
testJson = {
administrativeData: {
dccSoftware: [
--
GitLab
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment