Replace Icon for Gamesystems
Some checks failed
E2E Testing / test (push) Failing after 1m23s

This commit is contained in:
Sebastian Böckelmann 2024-02-10 10:23:11 +01:00
parent 0c328e1fd6
commit 824ccab48b
2 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,9 @@
<mat-tab-group>
<mat-tab *ngFor="let modelComponent of gameModelComponents">
<ng-template mat-tab-label>
<mat-icon class="example-tab-icon unsaved" [ngClass]="modelComponent.unsaved? 'unsaved':'saved'">inventory_2</mat-icon>
<mat-icon class="example-tab-icon unsaved" *ngIf="modelComponent.type === ModelComponentType.SCRIPTACCOUNT" [ngClass]="modelComponent.unsaved? 'unsaved':'saved'">inventory_2</mat-icon>
<mat-icon class="example-tab-icon unsaved" *ngIf="modelComponent.type === ModelComponentType.GAMESYTEM" [ngClass]="modelComponent.unsaved? 'unsaved':'saved'">code</mat-icon>
<span [ngClass]="modelComponent.unsaved? 'unsaved':'saved'">{{modelComponent.componentName}}</span>
<button class="content-label close-btn" mat-icon-button (click)="closeGameModelComponent(modelComponent)"><mat-icon>close</mat-icon></button>
</ng-template>

View File

@ -4,7 +4,10 @@
(click)="onSelectGamesystem(node)" (contextmenu)="onSelectGamesystem(node)" (dblclick)="openGamesystemEditor(node)">
<!-- use a disabled button to provide padding for tree leaf -->
<button mat-icon-button class="small-icon-button" [disabled]="true"></button>
{{node.name}}
<div>
<button mat-icon-button class="small-icon-button"><mat-icon>code</mat-icon></button>
<span>{{node.name}}</span>
</div>
</mat-tree-node>
<!-- This is the tree node template for expandable nodes -->
<mat-tree-node *matTreeNodeDef="let node;when: hasChild" matTreeNodePadding matTreeNodePaddingIndent="10"
@ -16,6 +19,9 @@
{{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
</mat-icon>
</button>
{{node.name}}
<div>
<button mat-icon-button class="small-icon-button"><mat-icon>code</mat-icon></button>
<span>{{node.name}}</span>
</div>
</mat-tree-node>
</mat-tree>