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> <h4>{{ 'AbpIdentity::PersonalInfo' | abpLocalization }}</h4>
</ng-template> </ng-template>
<ng-template #abpBody> <ng-template #abpBody>
<form novalidate *ngIf="form" [formGroup]="form" (ngSubmit)="onSubmit()"> <form novalidate *ngIf="form" [formGroup]="form" (ngSubmit)="submit()">
<div class="form-group"> <div class="form-group">
<label for="username">{{ 'AbpIdentity::DisplayName:UserName' | abpLocalization }}</label <label for="username">{{ 'AbpIdentity::DisplayName:UserName' | abpLocalization }}</label
><span> * </span><input type="text" id="username" class="form-control" formControlName="userName" autofocus /> ><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"> <button #abpClose type="button" class="btn btn-secondary">
{{ 'AbpIdentity::Cancel' | abpLocalization }} {{ 'AbpIdentity::Cancel' | abpLocalization }}
</button> </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> </ng-template>
</abp-modal> </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; if (this.form.invalid) return;
this.modalBusy = true; this.modalBusy = true;

Loading…
Cancel
Save