Skip to content

Commit

Permalink
ds command changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lebee committed Sep 10, 2021
1 parent e3b2491 commit 0bf06fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/poweredsoft/ngx-cdk-ui/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -100,6 +100,14 @@ export class DsCommandComponent implements OnInit, OnDestroy {
constructor() {

}

clearValidationError() {
this.lastValidationResult = null;
}

clearLastErrorMessage() {
this.lastErrorMessage = null;
}

ngOnDestroy() {
this._validationErrorSubscription?.unsubscribe();
Expand Down

0 comments on commit 0bf06fd

Please sign in to comment.