Skip to content
Snippets Groups Projects
Commit e04ee425 authored by Jérémie BRISON's avatar Jérémie BRISON Committed by Hugo SUBTIL
Browse files

feat(admin) : fix access component

parent d07aa01e
No related branches found
No related tags found
3 merge requests!68Recette,!67Dev,!51Feat/admin panel attachment
...@@ -2,13 +2,10 @@ import { NgModule } from '@angular/core'; ...@@ -2,13 +2,10 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { PanelComponent } from './panel/panel.component'; import { PanelComponent } from './panel/panel.component';
import { ValidationAttachmentComponent } from './validation-attachment/validation-attachment.component'; import { ValidationAttachmentComponent } from './validation-attachment/validation-attachment.component';
import { SharedModule } from '../shared/shared.module';
@NgModule({ @NgModule({
declarations: [PanelComponent, ValidationAttachmentComponent], declarations: [PanelComponent, ValidationAttachmentComponent],
imports: [ imports: [CommonModule, SharedModule],
CommonModule
]
}) })
export class AdminModule { } export class AdminModule {}
<p>panel works!</p> <div fxLayout="column" class="content-container">
<div fxLayout="row" fxLayoutAlign="center center"><h1>Panel d'administration</h1></div>
<app-admin-validation-attachment></app-admin-validation-attachment>
</div>
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'app-panel', selector: 'app-admin-panel',
templateUrl: './panel.component.html', templateUrl: './panel.component.html',
styleUrls: ['./panel.component.scss'] styleUrls: ['./panel.component.scss'],
}) })
export class PanelComponent implements OnInit { export class PanelComponent implements OnInit {
constructor() {}
constructor() { } ngOnInit(): void {}
ngOnInit(): void {
}
} }
<p>validation-attachment works!</p> <div fxLayout="row" fxLayoutAlign="center center"><p>validation-attachment works!</p></div>
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'app-validation-attachment', selector: 'app-admin-validation-attachment',
templateUrl: './validation-attachment.component.html', templateUrl: './validation-attachment.component.html',
styleUrls: ['./validation-attachment.component.scss'] styleUrls: ['./validation-attachment.component.scss'],
}) })
export class ValidationAttachmentComponent implements OnInit { export class ValidationAttachmentComponent implements OnInit {
constructor() {}
constructor() { } ngOnInit(): void {}
ngOnInit(): void {
}
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<strong>{{ structureId }}</strong> <strong>{{ structureId }}</strong>
</span> </span>
</p> </p>
<button routerLink="/admin">Accèder au panel d'administration</button> <button *ngIf="profileService.isAdmin()" routerLink="/admin">Accèder au panel d'administration</button>
<button (click)="toogleAddStructure()">Ajouter une structure</button> <button (click)="toogleAddStructure()">Ajouter une structure</button>
<button (click)="toogleChangeEmail()">Changer d'email</button> <button (click)="toogleChangeEmail()">Changer d'email</button>
<form <form
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment