diff --git a/src/main/webapp/app/account/register/register.component.ts b/src/main/webapp/app/account/register/register.component.ts index 8d558b6..24a7542 100644 --- a/src/main/webapp/app/account/register/register.component.ts +++ b/src/main/webapp/app/account/register/register.component.ts @@ -12,7 +12,7 @@ import { RegisterService } from './register.service'; templateUrl: './register.component.html', styleUrls: ['./register.component.scss'], }) -export class RegisterComponent implements OnInit, AfterViewInit { +export class RegisterComponent implements AfterViewInit { // @ViewChild('name', { static: false }) // name?: ElementRef; @@ -53,7 +53,6 @@ export class RegisterComponent implements OnInit, AfterViewInit { errorEmailExists = false; errorUserExists = false; success = false; - isAdmin: number = 0; // Login will be used to store the email as well. // login: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(254), Validators.email]] @@ -66,10 +65,6 @@ export class RegisterComponent implements OnInit, AfterViewInit { constructor(private translateService: TranslateService, private registerService: RegisterService, private fb: FormBuilder) {} - ngOnInit(): void { - this.isAdmin = window.location.href.includes('/account/register') ? 0 : 1; - } - ngAfterViewInit(): void { // if (this.name) { // this.name.nativeElement.focus(); @@ -99,7 +94,7 @@ export class RegisterComponent implements OnInit, AfterViewInit { langKey: this.translateService.currentLang, name, profileIcon: this.profileIcon, - isAdmin: this.isAdmin, + isAdmin: 0, }) .subscribe( () => (this.success = true), diff --git a/src/main/webapp/app/entities/usuario-extra/update/usuario-extra-update.component.html b/src/main/webapp/app/entities/usuario-extra/update/usuario-extra-update.component.html index 68ee81c..9c332db 100644 --- a/src/main/webapp/app/entities/usuario-extra/update/usuario-extra-update.component.html +++ b/src/main/webapp/app/entities/usuario-extra/update/usuario-extra-update.component.html @@ -1,118 +1,246 @@ -