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