This commit is contained in:
2023-12-01 20:47:42 +02:00
parent a09fc7ece3
commit 045f60e373
39 changed files with 1252 additions and 945 deletions
@@ -7,6 +7,7 @@ export interface AccountModel {
currencyId?: string,
currencyName?: string,
type?: string,
allowWrite: boolean,
allowDelete: boolean,
allowManage: boolean,
categories?: AccountCategoryModel[],
@@ -38,7 +38,7 @@
<td>{{account.currencyId}}</td>
<td>{{account.type}}</td>
<td>
<button class="btn-space" (click)="edit(account)" mat-raised-button color="primary">
<button class="btn-space" *ngIf="account.allowWrite" (click)="edit(account)" mat-raised-button color="primary">
Edit
</button>
<button class="btn-space" *ngIf="account.allowManage" (click)="access(account)" mat-raised-button color="primary">
@@ -25,6 +25,15 @@
<a href="javascript:;" (click)="selectCategory(category)" title="{{category.name}}">{{category.name}}</a>
</li>
</ul>
<ul *ngIf="categoryAddShow">
<mat-form-field class="example-full-width">
<mat-label>Code</mat-label>
<input matInput [(ngModel)]="categoryAddName">
</mat-form-field>
</ul>
<ul *ngIf="!categoryAddShow">
</ul>
</div>
</div>
</div>
@@ -24,6 +24,8 @@ export class SettingsItemComponent {
public selectedCategory?: ItemCategoryModel;
public selectedCount: number = 0;
public category?: ItemCategoryModel;
public categoryAddShow: boolean = false;
public categoryAddName?: string;
constructor(
private dialogModel: MatDialog,