ds command changes.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@poweredsoft/ngx-cdk-ui",
|
||||
"version": "0.0.17",
|
||||
"version": "0.0.18",
|
||||
"peerDependencies": {
|
||||
"@angular/common": "^9.1.9",
|
||||
"@angular/core": "^9.1.9",
|
||||
|
||||
@@ -48,8 +48,8 @@ export class DsCommandComponent implements OnInit, OnDestroy {
|
||||
@ContentChild(DsCommandValidationDirective) validationDirective: DsCommandValidationDirective;
|
||||
@ContentChildren(DsCommandSubmitDirective) submitDirectives: QueryList<DsCommandSubmitDirective>;
|
||||
|
||||
lastErrorMessage: string;
|
||||
lastValidationResult: DsCommandPropertyError[];
|
||||
lastErrorMessage: string | null;
|
||||
lastValidationResult: DsCommandPropertyError[] | null;
|
||||
|
||||
protected _command: any = null;
|
||||
|
||||
@@ -100,6 +100,14 @@ export class DsCommandComponent implements OnInit, OnDestroy {
|
||||
constructor() {
|
||||
|
||||
}
|
||||
|
||||
clearValidationError() {
|
||||
this.lastValidationResult = null;
|
||||
}
|
||||
|
||||
clearLastErrorMessage() {
|
||||
this.lastErrorMessage = null;
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
this._validationErrorSubscription?.unsubscribe();
|
||||
|
||||
Reference in New Issue
Block a user