Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
feat: Allow users to subscribe to newsletters
Browse files Browse the repository at this point in the history
  • Loading branch information
aelamrani authored and gcusnieux committed Apr 7, 2020
1 parent 364102d commit b0de62f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/app/pages/registration/registration.component.html
Expand Up @@ -27,6 +27,7 @@ <h1 *ngIf="registrationForm">{{ 'registration.title' | translate }}</h1>
formControlName="firstname"
name="firstname"
autocomplete="on"
autofocus
ngDefaultControl
class="registration__form__input"
>
Expand Down Expand Up @@ -55,6 +56,7 @@ <h1 *ngIf="registrationForm">{{ 'registration.title' | translate }}</h1>
class="registration__form__input"
>
</gv-input>

<gv-button
[disabled]="!isFormValid() || isSubmitted"
primary
Expand Down
7 changes: 3 additions & 4 deletions src/app/pages/registration/registration.component.ts
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms';
import { UsersService, RegisterUserInput } from '@gravitee/ng-portal-webclient';
import { FormBuilder, FormGroup } from '@angular/forms';
import { RegisterUserInput, UsersService } from '@gravitee/ng-portal-webclient';
import { NotificationService } from '../../services/notification.service';
import { marker as i18n } from '@biesbjerg/ngx-translate-extract-marker';

Expand All @@ -38,9 +38,8 @@ export class RegistrationComponent implements OnInit {
this.registrationForm = this.formBuilder.group({
firstname: '',
lastname: '',
email: ''
email: '',
});

this.isSubmitted = false;
}

Expand Down

0 comments on commit b0de62f

Please sign in to comment.