Skip to content

Commit

Permalink
Merge pull request #795 from DSD-DBS/drop-back-buttons
Browse files Browse the repository at this point in the history
fix: Remove unneeded back buttons.
  • Loading branch information
MoritzWeber0 authored Jul 3, 2023
2 parents 1607d35 + 2c633fc commit 905ade9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<div class="wrapper flex flex-center">
<mat-card *ngIf="modelService.model | async">
<mat-card *ngIf="modelService.model | async" class="basis-1 grow">
<mat-card-title>{{ (modelService.model | async)!.name }}</mat-card-title>
<form (submit)="onSubmit()" [formGroup]="form">
<fieldset>
Expand Down Expand Up @@ -48,28 +48,21 @@
</fieldset>
<br />
<div class="flex justify-between">
<a mat-button routerLink="../../.."
><mat-icon>arrow_back</mat-icon>Back</a
<span
matTooltip="The model can't be deleted since it has linked Git and/or T4C models."
[matTooltipDisabled]="canDelete"
>
<div class="flex flex-wrap gap-2">
<span
matTooltip="The model can't be deleted since it has linked Git and/or T4C models."
[matTooltipDisabled]="canDelete"
<button
mat-flat-button
color="warn"
(click)="deleteModel()"
[disabled]="!canDelete"
type="button"
>
<button
mat-flat-button
color="warn"
(click)="deleteModel()"
[disabled]="!canDelete"
type="button"
>
Delete
</button>
</span>
<button mat-flat-button color="primary" type="submit">
Update model
Delete
</button>
</div>
</span>
<button mat-flat-button color="primary" type="submit">Submit</button>
</div>
</form>
</mat-card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@
</fieldset>
</form>
<div *ngIf="asStepper; else notFromStepper" class="flex justify-between">
<button mat-button (click)="create.emit(false)">
<mat-icon class="mat-icon-position">arrow_back</mat-icon>
Back
</button>

<button
mat-raised-button
color="primary"
Expand Down Expand Up @@ -207,11 +202,6 @@
</div>
<div *ngIf="!editing">
<div class="flex justify-between">
<a mat-button [routerLink]="['../../model-sources']">
<mat-icon class="mat-icon-position">arrow_back</mat-icon>
Back
</a>

<div>
<button mat-raised-button color="warn" (click)="unlinkGitModel()">
Unlink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
</mat-form-field>
</form>
<div class="flex justify-between">
<a mat-raised-button routerLink="../.."> Back </a>
<button
[class]="'right-button'"
mat-flat-button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ <h2 *ngIf="!existing">Add a Team4Capella instance</h2>
<button mat-flat-button type="submit" color="primary">Submit</button>
</div>
<div *ngIf="!editing && existing" class="flex justify-between">
<a mat-button [routerLink]="['../..']">
<mat-icon class="mat-icon-position">arrow_back</mat-icon>
Back
</a>
<button mat-flat-button color="primary" (click)="enableEditing()">
Edit
</button>
Expand Down

0 comments on commit 905ade9

Please sign in to comment.