clean code
This commit is contained in:
parent
a91162832b
commit
7a7292ab32
21 changed files with 13 additions and 13 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { SummaryComponent } from './components/summary/summary.component';
|
||||
import { HelpComponent } from './shared/components/help/help.component';
|
||||
import { ImprintComponent } from './shared/components/imprint/imprint.component';
|
||||
import { PrivacyPolicyComponent } from './shared/components/privacy-policy/privacy-policy.component';
|
||||
import { HelpComponent } from './shared/components/legal-informations/help/help.component';
|
||||
import { ImprintComponent } from './shared/components/legal-informations/imprint/imprint.component';
|
||||
import { PrivacyPolicyComponent } from './shared/components/legal-informations/privacy-policy/privacy-policy.component';
|
||||
import { AddTaskComponent } from './components/add-task/add-task.component';
|
||||
import { BoardComponent } from './components/board/board.component';
|
||||
import { ContactsComponent } from './components/contacts/contacts.component';
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ export class FirebaseService implements OnDestroy {
|
|||
}
|
||||
|
||||
getCurrentUserId() {
|
||||
let currentUser = localStorage.getItem('currentUser');
|
||||
let currentUser = localStorage.getItem('currentUserJOIN');
|
||||
if (currentUser !== null) {
|
||||
return JSON.parse(currentUser);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,6 +126,6 @@ export class LoginService {
|
|||
}
|
||||
|
||||
getUserIdInLocalStorage(userId: string) {
|
||||
localStorage.setItem('currentUser', JSON.stringify(userId));
|
||||
localStorage.setItem('currentUserJOIN', JSON.stringify(userId));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ export class SharedService {
|
|||
}
|
||||
|
||||
deleteUserIdInLocalStorage() {
|
||||
localStorage.removeItem('currentUser');
|
||||
localStorage.removeItem('currentUserJOIN');
|
||||
}
|
||||
|
||||
// RANDOM COLOR
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Component, HostListener } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { NavbarComponent } from '../navbar/navbar.component';
|
||||
import { NavbarComponent } from './navbar/navbar.component';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { FirebaseService } from '../../../services/firebase.service';
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { Component, Input } from '@angular/core';
|
||||
import { Router, RouterModule } from '@angular/router';
|
||||
import { HeaderComponent } from '../header/header.component';
|
||||
import { LanguageService } from '../../../services/language.service';
|
||||
import { HeaderComponent } from '../header.component';
|
||||
import { LanguageService } from '../../../../services/language.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { SharedService } from '../../../services/shared.service';
|
||||
import { SharedService } from '../../../../services/shared.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-navbar',
|
||||
|
|
@ -2,7 +2,7 @@ import { Component } from '@angular/core';
|
|||
import { RouterModule } from '@angular/router';
|
||||
import { Location } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { BtnBackComponent } from '../buttons/btn-back/btn-back.component';
|
||||
import { BtnBackComponent } from '../../buttons/btn-back/btn-back.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-help',
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { CommonModule, Location } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { BtnBackComponent } from '../buttons/btn-back/btn-back.component';
|
||||
import { BtnBackComponent } from '../../buttons/btn-back/btn-back.component';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { CommonModule, Location } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { BtnBackComponent } from '../buttons/btn-back/btn-back.component';
|
||||
import { BtnBackComponent } from '../../buttons/btn-back/btn-back.component';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
Loading…
Reference in a new issue