fixed errors on stock-form

This commit is contained in:
2025-11-13 19:02:17 +01:00
parent 8ef46ef1c8
commit b499b2b560
7 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,34 @@
import {Component, Input, input} from '@angular/core';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzModalModule } from 'ng-zorro-antd/modal';
import {NzIconDirective} from "ng-zorro-antd/icon";
@Component({
selector: 'app-modal-nav',
imports: [NzButtonModule, NzModalModule, NzIconDirective],
templateUrl: 'modal-nav.html',
styleUrls: ['./modal-nav.css'],
})
export class ModalNav {
@Input() nameIcon: string = '';
@Input() name: string = '';
isVisible = false;
isOkLoading = false;
showModal(): void {
this.isVisible = true;
}
handleOk(): void {
this.isOkLoading = true;
setTimeout(() => {
this.isVisible = false;
this.isOkLoading = false;
}, 1000);
}
handleCancel(): void {
this.isVisible = false;
}
}