Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
397
Merge Requests
53
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
4e94ad1d
Commit
4e94ad1d
authored
1 day ago
by
Olivia Madrid
Browse files
Options
Download
(feat): pass build
parent
650bfe02
epic/wallet-80
1 merge request
!675
Wallet upgrade
Pipeline
#99154414
failed with stages
in 10 minutes and 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
src/app/modules/wallet/v2/chart/chart.component.ts
View file @
4e94ad1d
...
...
@@ -9,12 +9,18 @@ import { Timespan } from '../../../../interfaces/dashboard';
export
class
WalletChartComponent
implements
OnInit
{
@
Input
()
activeCurrencyId
;
timespans
:
Timespan
[];
selectedTimespan
;
data
;
constructor
(
protected
walletService
:
WalletDashboardService
)
{}
ngOnInit
()
{
this
.
walletService
.
getTimespans
();
this
.
data
=
this
.
walletService
.
getData
();
this
.
timespans
=
this
.
data
.
timespans
;
this
.
selectedTimespan
=
this
.
timespans
.
find
(
ts
=>
ts
.
id
===
this
.
data
.
timespan
).
id
;
this
.
data
=
this
.
walletService
.
getCurrencies
()
.
find
(
currency
=>
currency
.
id
===
this
.
activeCurrencyId
);
...
...
This diff is collapsed.
src/app/modules/wallet/v2/dashboard.component.ts
View file @
4e94ad1d
...
...
@@ -85,7 +85,6 @@ export class WalletDashboardComponent implements OnInit, OnDestroy {
this
.
activeTabId
=
params
.
get
(
'
topTab
'
);
}
else
{
this
.
activeTabId
=
this
.
topTabOptions
[
0
];
console
.
log
(
'
bork
'
);
this
.
rerouteTopTab
(
this
.
activeTabId
);
}
...
...
@@ -116,9 +115,7 @@ export class WalletDashboardComponent implements OnInit, OnDestroy {
}
rerouteTopTab
(
topTabId
)
{
console
.
log
(
'
bork1
'
,
this
.
activeCurrencyId
);
this
.
router
.
navigate
([
'
/v2wallet
'
,
this
.
activeCurrencyId
,
topTabId
]);
console
.
log
(
'
bork2
'
);
this
.
detectChanges
();
}
...
...
This diff is collapsed.
src/app/modules/wallet/v2/dashboard.service.ts
View file @
4e94ad1d
...
...
@@ -73,10 +73,10 @@ export class WalletDashboardService {
}
getTimespans
()
{
return
fakeData
.
timespans
;
return
fakeData
;
}
getData
(
currency
)
{
getData
()
{
return
fakeData
;
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment