Browse Source

refactor(theme-basic): change submit method name

pull/1647/head
mehmet-erim 7 years ago
parent
commit
5ca1eb47f3
  1. 4
      npm/ng-packs/packages/theme-basic/src/lib/components/profile/profile.component.html
  2. 2
      npm/ng-packs/packages/theme-basic/src/lib/components/profile/profile.component.ts

4
npm/ng-packs/packages/theme-basic/src/lib/components/profile/profile.component.html

@ -3,7 +3,7 @@
<h4>{{ 'AbpIdentity::PersonalInfo' | abpLocalization }}</h4>
</ng-template>
<ng-template #abpBody>
<form novalidate *ngIf="form" [formGroup]="form" (ngSubmit)="onSubmit()">
<form novalidate *ngIf="form" [formGroup]="form" (ngSubmit)="submit()">
<div class="form-group">
<label for="username">{{ 'AbpIdentity::DisplayName:UserName' | abpLocalization }}</label
><span> * </span><input type="text" id="username" class="form-control" formControlName="userName" autofocus />
@ -36,6 +36,6 @@
<button #abpClose type="button" class="btn btn-secondary">
{{ 'AbpIdentity::Cancel' | abpLocalization }}
</button>
<abp-button iconClass="fa fa-check" (click)="onSubmit()">{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button>
<abp-button iconClass="fa fa-check" (click)="submit()">{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button>
</ng-template>
</abp-modal>

2
npm/ng-packs/packages/theme-basic/src/lib/components/profile/profile.component.ts

@ -54,7 +54,7 @@ export class ProfileComponent implements OnChanges {
});
}
onSubmit() {
submit() {
if (this.form.invalid) return;
this.modalBusy = true;

Loading…
Cancel
Save