refresh on success should be true by default.

This commit is contained in:
David Lebee 2021-08-31 14:42:26 -04:00
parent 2daba0cfa9
commit 21a93e1a1a
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@poweredsoft/ngx-cdk-ui", "name": "@poweredsoft/ngx-cdk-ui",
"version": "0.0.15", "version": "0.0.16",
"peerDependencies": { "peerDependencies": {
"@angular/common": "^9.1.9", "@angular/common": "^9.1.9",
"@angular/core": "^9.1.9", "@angular/core": "^9.1.9",

View File

@ -21,10 +21,19 @@ export interface DsCommandPropertyError
styleUrls: ['./ds-command.component.scss'] styleUrls: ['./ds-command.component.scss']
}) })
export class DsCommandComponent implements OnInit, OnDestroy { export class DsCommandComponent implements OnInit, OnDestroy {
private _refreshOnSuccess: boolean = true;
@Input() dataSource: IDataSource<any>; @Input() dataSource: IDataSource<any>;
@Input() name: string; @Input() name: string;
@Input() model: any; @Input() model: any;
@Input() refreshOnSuccess: boolean; @Input() set refreshOnSuccess(val: boolean) {
this._refreshOnSuccess = val;
}
get refreshOnSuccess() {
return this._refreshOnSuccess;
}
@Input() resolveCommand: boolean; @Input() resolveCommand: boolean;
@Output() success = new EventEmitter<any>(); @Output() success = new EventEmitter<any>();