refresh on success should be true by default.
This commit is contained in:
parent
2daba0cfa9
commit
21a93e1a1a
@ -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",
|
||||||
|
@ -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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user