Skip to content
Snippets Groups Projects
Commit 72faede9 authored by rhenck's avatar rhenck
Browse files

[editor] Hide history button

This feature is incomplete. Button is hidden until it's done.
parent 9b8d9902
No related branches found
No related tags found
No related merge requests found
Pipeline #60626 failed
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
</ng-template> </ng-template>
<aspect-page-canvas *ngIf="pagesLoaded" class="fx-column-start-stretch" [page]="page"></aspect-page-canvas> <aspect-page-canvas *ngIf="pagesLoaded" class="fx-column-start-stretch" [page]="page"></aspect-page-canvas>
</mat-tab> </mat-tab>
<mat-tab disabled> <mat-tab disabled>
<ng-template mat-tab-label> <ng-template mat-tab-label>
<button mat-icon-button (click)="addPage()"> <button mat-icon-button (click)="addPage()">
...@@ -55,22 +56,23 @@ ...@@ -55,22 +56,23 @@
</ng-template> </ng-template>
</mat-tab> </mat-tab>
<mat-tab disabled> <!-- Commented out for now, until feature works-->
<ng-template mat-tab-label> <!-- <mat-tab disabled>-->
<button mat-icon-button class="history-button" [matMenuTriggerFor]="historyMenu"> <!-- <ng-template mat-tab-label>-->
<mat-icon>history</mat-icon> <!-- <button mat-icon-button class="history-button" [matMenuTriggerFor]="historyMenu">-->
</button> <!-- <mat-icon>history</mat-icon>-->
<mat-menu #historyMenu="matMenu"> <!-- </button>-->
<h3>Änderungshistorie</h3> <!-- <mat-menu #historyMenu="matMenu">-->
<p [style.color]="'red'">Achtung experimentelle Funktion!<br> <!-- <h3>Änderungshistorie</h3>-->
Benutzung kann Fehler verursachen bis hin zu kaputter Unit.</p> <!-- <p [style.color]="'red'">Achtung experimentelle Funktion!<br>-->
<div *ngFor="let command of historyService.commandList"> <!-- Benutzung kann Fehler verursachen bis hin zu kaputter Unit.</p>-->
<p>{{ command.title }}</p> <!-- <div *ngFor="let command of historyService.commandList">-->
</div> <!-- <p>{{ command.title }}</p>-->
<button *ngIf="historyService.commandList.length > 0" (click)="unitService.rollback()">Rollback</button> <!-- </div>-->
</mat-menu> <!-- <button *ngIf="historyService.commandList.length > 0" (click)="unitService.rollback()">Rollback</button>-->
</ng-template> <!-- </mat-menu>-->
</mat-tab> <!-- </ng-template>-->
<!-- </mat-tab>-->
<mat-tab disabled> <mat-tab disabled>
<ng-template mat-tab-label> <ng-template mat-tab-label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment