bug fix
This commit is contained in:
parent
928fd62875
commit
265305b7fc
|
@ -245,13 +245,21 @@ export class HomeComponent implements OnInit {
|
|||
__onClickCompose(composeMenuType: ComposeMenuType): void {
|
||||
let selectType: any;
|
||||
|
||||
if (
|
||||
!this.loggedIn &&
|
||||
composeMenuType !== ComposeMenuType.signIn &&
|
||||
composeMenuType !== ComposeMenuType.signup
|
||||
) {
|
||||
alert('로그인 후 이용해주세요.');
|
||||
return;
|
||||
}
|
||||
switch (composeMenuType) {
|
||||
case ComposeMenuType.signOut:
|
||||
// selectType = SignInComposeComponent;
|
||||
return;
|
||||
break;
|
||||
case ComposeMenuType.signIn:
|
||||
selectType = SignUpComposeComponent;
|
||||
selectType = SignInComposeComponent;
|
||||
break;
|
||||
case ComposeMenuType.signup:
|
||||
selectType = SignUpComposeComponent;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||
import { MatDialogRef } from '@angular/material/dialog';
|
||||
import { fuseAnimations } from '@fuse/animations';
|
||||
import { FuseAlertType } from '@fuse/components/alert';
|
||||
import { AuthService } from 'app/core/auth/auth.service';
|
||||
|
||||
|
@ -8,6 +9,7 @@ import { AuthService } from 'app/core/auth/auth.service';
|
|||
selector: 'sign-in-compose',
|
||||
templateUrl: './sign-in-compose.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
animations: fuseAnimations,
|
||||
})
|
||||
export class SignInComposeComponent implements OnInit {
|
||||
signInComposeForm!: FormGroup;
|
||||
|
|
Loading…
Reference in New Issue
Block a user