diff --git a/web/src/app/app.component.html b/web/src/app/app.component.html index 2b2811bd..84310ac7 100644 --- a/web/src/app/app.component.html +++ b/web/src/app/app.component.html @@ -1,54 +1,51 @@ - - - - view_quilt  -

Dashboard

-
- - account_balance_wallet  -

Wallet

-
- - add_shopping_cart  -

Trading

-
- - history  -

History

-
- - settings  -

Settings

-
- - thumb_up  -

Donate

-
- - grade  - -

GitHub

-
-
- - view_agenda  - -

Trello

-
-
- - bug_report  - -

Report a bug

-
-
- -
- -
- - -
\ No newline at end of file + + + + view_quilt  +

Dashboard

+
+ + account_balance_wallet  +

Wallet

+
+ + add_shopping_cart  +

Trading

+
+ + history  +

History

+
+ + settings  +

Settings

+
+ + thumb_up  +

Donate

+
+ + grade  + +

GitHub

+
+
+ + view_agenda  + +

Trello

+
+
+ + bug_report  + +

Report a bug

+
+
+
+
+ + diff --git a/web/src/app/pages/dashboard/dashboard.component.html b/web/src/app/pages/dashboard/dashboard.component.html index 92996ea5..6aec9745 100644 --- a/web/src/app/pages/dashboard/dashboard.component.html +++ b/web/src/app/pages/dashboard/dashboard.component.html @@ -1,60 +1,17 @@ - + - Shiba Inu - Dog Breed + {{tile.title}} + {{tile.subTitle}} - HI + {{tile.content}} - + + - - - - Shiba Inu - Dog Breed - - - HI - - - - - - - - - - - Shiba Inu - Dog Breed - - - HI - - - - - - - - - - - 4 Inu - Dog Breed - - - HI - - - - - - \ No newline at end of file diff --git a/web/src/app/pages/dashboard/dashboard.component.ts b/web/src/app/pages/dashboard/dashboard.component.ts index 121dc821..488a04e5 100644 --- a/web/src/app/pages/dashboard/dashboard.component.ts +++ b/web/src/app/pages/dashboard/dashboard.component.ts @@ -1,18 +1,63 @@ -import { Component, OnInit } from '@angular/core'; +import {Component, OnInit }from '@angular/core'; -@Component({ - selector: 'app-dashboard', - templateUrl: './dashboard.component.html', - styleUrls: ['./dashboard.component.scss'], +@Component( { +selector:'app-dashboard', +templateUrl:'./dashboard.component.html', +styleUrls:['./dashboard.component.scss'], }) + export class DashboardComponent implements OnInit { - constructor() - { - } +public dashboard:any; +public expanded:boolean = false; +constructor() { +} - ngOnInit() { +ngOnInit() { + this.resetTiles(); +} + +public expandTile(tile:any) { + for(var i = 0; i< this.dashboard.tiles.length; i++) { + if(this.dashboard.tiles[i].title === tile.title ) { + this.dashboard.tiles[i].rows = 2; + this.dashboard.tiles[i].columns = 3; + this.expanded = true; + } else { + this.dashboard.tiles[i].rows = 0; + this.dashboard.tiles[i].columns = 0; + } } +} +public resetTiles() { + this.expanded = false; + this.dashboard = {tiles:[ { + title:'Trade History:', + subTitle:'Trade History', + content:'', + columns:1, + rows:2, + }, { + title:'Price History:', + subTitle:'Price History', + content:'', + columns:2, + rows:1, + }, { + title:'My Orders:', + subTitle:'My Orders', + content:'', + columns:1, + rows:1, + }, { + title:'Orders:', + subTitle:'Orders', + content:'', + columns:1, + rows:1, + }, + ]}; +} }