refactor: account info in Chart of Accounts tree view (#1715)
now the account info in chart of accounts appears on the right side instead of left side Fixes: #1714
This commit is contained in:
@@ -95,6 +95,41 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxLayout="row" fxLayoutGap="4%" fxLayout.lt-md="column">
|
<div fxLayout="row" fxLayoutGap="4%" fxLayout.lt-md="column">
|
||||||
|
|
||||||
|
<div class="mat-elevation-z8" fxFlex>
|
||||||
|
|
||||||
|
<mat-tree [dataSource]="nestedTreeDataSource" [treeControl]="nestedTreeControl" class="gl-account-tree">
|
||||||
|
|
||||||
|
<mat-tree-node *matTreeNodeDef="let node" matTreeNodeToggle>
|
||||||
|
<li class="mat-tree-node">
|
||||||
|
<button mat-icon-button disabled></button>
|
||||||
|
<span (click)="viewGLAccountNode(node)">
|
||||||
|
<span *ngIf="node.glCode">{{ '(' + node.glCode + ')' }}</span>
|
||||||
|
{{ node.name }}
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</mat-tree-node>
|
||||||
|
|
||||||
|
<mat-nested-tree-node *matTreeNodeDef="let node; when: hasNestedChild">
|
||||||
|
<li>
|
||||||
|
<div class="mat-tree-node">
|
||||||
|
<button mat-icon-button matTreeNodeToggle [attr.aria-label]="'toggle ' + node.name">
|
||||||
|
<fa-icon class="mat-icon-rtl-mirror" icon="{{ nestedTreeControl.isExpanded(node) ? 'chevron-down' : 'chevron-right' }}"></fa-icon>
|
||||||
|
</button>
|
||||||
|
<span (click)="viewGLAccountNode(node)">
|
||||||
|
<span *ngIf="node.glCode">{{ '(' + node.glCode + ')' }}</span>
|
||||||
|
{{ node.name }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ul [class.gl-account-tree-invisible]="!nestedTreeControl.isExpanded(node)">
|
||||||
|
<ng-container matTreeNodeOutlet></ng-container>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</mat-nested-tree-node>
|
||||||
|
|
||||||
|
</mat-tree>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div fxFlex="48%" *ngIf="glAccount">
|
<div fxFlex="48%" *ngIf="glAccount">
|
||||||
|
|
||||||
@@ -160,41 +195,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mat-elevation-z8" fxFlex>
|
|
||||||
|
|
||||||
<mat-tree [dataSource]="nestedTreeDataSource" [treeControl]="nestedTreeControl" class="gl-account-tree">
|
|
||||||
|
|
||||||
<mat-tree-node *matTreeNodeDef="let node" matTreeNodeToggle>
|
|
||||||
<li class="mat-tree-node">
|
|
||||||
<button mat-icon-button disabled></button>
|
|
||||||
<span (click)="viewGLAccountNode(node)">
|
|
||||||
<span *ngIf="node.glCode">{{ '(' + node.glCode + ')' }}</span>
|
|
||||||
{{ node.name }}
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</mat-tree-node>
|
|
||||||
|
|
||||||
<mat-nested-tree-node *matTreeNodeDef="let node; when: hasNestedChild">
|
|
||||||
<li>
|
|
||||||
<div class="mat-tree-node">
|
|
||||||
<button mat-icon-button matTreeNodeToggle [attr.aria-label]="'toggle ' + node.name">
|
|
||||||
<fa-icon class="mat-icon-rtl-mirror" icon="{{ nestedTreeControl.isExpanded(node) ? 'chevron-down' : 'chevron-right' }}"></fa-icon>
|
|
||||||
</button>
|
|
||||||
<span (click)="viewGLAccountNode(node)">
|
|
||||||
<span *ngIf="node.glCode">{{ '(' + node.glCode + ')' }}</span>
|
|
||||||
{{ node.name }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ul [class.gl-account-tree-invisible]="!nestedTreeControl.isExpanded(node)">
|
|
||||||
<ng-container matTreeNodeOutlet></ng-container>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</mat-nested-tree-node>
|
|
||||||
|
|
||||||
</mat-tree>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user