ds command.

This commit is contained in:
David Lebee 2021-08-31 11:57:35 -04:00
parent 88f8a7f58f
commit 2daba0cfa9
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -16,7 +16,7 @@ export interface DsCommandPropertyError
} }
@Component({ @Component({
selector: 'ps-ds-command', selector: 'ps-ds-command, [psDsCommand]',
templateUrl: './ds-command.component.html', templateUrl: './ds-command.component.html',
styleUrls: ['./ds-command.component.scss'] styleUrls: ['./ds-command.component.scss']
}) })
@ -110,7 +110,7 @@ export class DsCommandComponent implements OnInit, OnDestroy {
}); });
this._notifyMessageSubscription = this.dataSource.notifyMessage$.subscribe(message => { this._notifyMessageSubscription = this.dataSource.notifyMessage$.subscribe(message => {
if (message.type != 'info') if (message.type != 'info' && message.type != "success")
this.lastErrorMessage = message.message; this.lastErrorMessage = message.message;
}); });

View File

@ -21,7 +21,7 @@
<div class="card mt-2" *ngIf="formActivated"> <div class="card mt-2" *ngIf="formActivated">
<div class="card-body"> <div class="card-body">
<ps-ds-command [dataSource]="dataSource" name="changePhone" (success)="onSuccess($event)" <div psDsCommand [dataSource]="dataSource" name="changePhone" (success)="onSuccess($event)"
[model]="model"> [model]="model">
<ng-container *psDsCommandContent="let command; let loading=loading"> <ng-container *psDsCommandContent="let command; let loading=loading">
<div class="form-group"> <div class="form-group">
@ -65,7 +65,7 @@
</ng-container> </ng-container>
</ps-ds-command> </div>
</div> </div>
</div> </div>
</ng-container> </ng-container>