This commit is contained in:
Park Byung Eun 2022-08-26 07:55:12 +00:00
parent 928fd62875
commit 265305b7fc
2 changed files with 11 additions and 1 deletions

View File

@ -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;

View File

@ -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;