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