diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 6d1784c..4f2194a 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -8,6 +8,7 @@ import { ProfileComponent } from './control-panel/profile/profile/profile.compon import { EditProfileComponent } from './control-panel/profile/edit-profile/edit-profile.component'; import { EditConfigurationComponent } from './control-panel/profile/configuration/edit-configuration/edit-configuration.component'; import { DevicesComponent } from './control-panel/profile/devices/devices.component'; +import { DashboardComponent } from './control-panel/profile/dashboard/dashboard.component'; const routes: Routes = [ @@ -20,6 +21,7 @@ const routes: Routes = { path: '', component: ProfileComponent}, { path: ':profileId', children: [ { path: '', component: ProfileComponent}, + { path: 'dashboard', component: DashboardComponent}, { path: 'edit', component: EditProfileComponent}, { path: 'configurations', children: [ { path: '', component: ConfigurationComponent}, diff --git a/src/app/app.component.html b/src/app/app.component.html index 4397753..a215ff8 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -9,6 +9,7 @@ + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 6c3f697..0de65dc 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -162,6 +162,10 @@ export class AppComponent implements OnInit { this._router.navigate(['/home']); } + public GoToDashboard() { + this._router.navigate(['/profile/' + this.ConnectedUser.id + '/dashboard']); + } + public GoToProfile() { this._router.navigate(['/profile/' + this.ConnectedUser.id]); } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index e1df039..e16d924 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -38,6 +38,7 @@ import { ToastModule } from 'primeng/toast'; import { DropdownModule } from 'primeng/dropdown'; import { EditConfigurationComponent } from './control-panel/profile/configuration/edit-configuration/edit-configuration.component'; import { DevicesComponent } from './control-panel/profile/devices/devices.component'; +import { DashboardComponent } from './control-panel/profile/dashboard/dashboard.component'; @@ -71,7 +72,8 @@ export function HttpLoaderFactory(http: HttpClient) { ProfileComponent, EditProfileComponent, EditConfigurationComponent, - DevicesComponent + DevicesComponent, + DashboardComponent ], imports: [ BrowserModule, diff --git a/src/app/control-panel/home/home.component.html b/src/app/control-panel/home/home.component.html index 47e5757..fe7efa0 100644 --- a/src/app/control-panel/home/home.component.html +++ b/src/app/control-panel/home/home.component.html @@ -86,26 +86,13 @@
-
-
-
-
HUBERT
- -
Cette petite bite
-

Some quick example text to build on the card title and make up the bulk of the card's content.

- -
-
-
-
+
FRANSOLET
- +
+ +
Cette gribouille

Some quick example text to build on the card title and make up the bulk of the card's content.

-
+
MICHEL
- +
Ce poseur

Some quick example text to build on the card title and make up the bulk of the card's content.