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
373
Merge Requests
57
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
599aac5b
Commit
599aac5b
authored
2 days ago
by
Olivia Madrid
Browse files
Options
Download
Fix failing chart test
parent
be4837b0
epic/wallet-80
1 merge request
!686
WIP: Epic/wallet 80
Pipeline
#114106543
failed with stages
in 5 minutes and 47 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
28 deletions
+20
-28
src/app/common/components/chart-v2/chart-v2.component.spec.ts
View file @
599aac5b
...
...
@@ -26,32 +26,24 @@ describe('ChartV2Component', () => {
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
ChartV2Component
);
component
=
fixture
.
componentInstance
;
component
.
rawData
=
{
id
:
'
views
'
,
label
:
'
Pageviews
'
,
permissions
:
[
'
admin
'
,
'
user
'
],
unit
:
'
usd
'
,
description
:
''
,
visualisation
:
{
type
:
'
chart
'
,
segments
:
[
component
.
label
=
'
Pageviews
'
;
component
.
unit
=
'
usd
'
;
component
.
segments
=
[
{
buckets
:
[
{
buckets
:
[
{
key
:
1567296000000
,
date
:
'
2019-09-01T00:00:00+00:00
'
,
value
:
11
,
},
{
key
:
1567382400000
,
date
:
'
2019-09-02T00:00:00+00:00
'
,
value
:
12
,
},
],
key
:
1567296000000
,
date
:
'
2019-09-01T00:00:00+00:00
'
,
value
:
11
,
},
{
key
:
1567382400000
,
date
:
'
2019-09-02T00:00:00+00:00
'
,
value
:
12
,
},
],
},
}
;
]
;
});
it
(
'
should create
'
,
()
=>
{
...
...
This diff is collapsed.
src/app/common/components/chart-v2/chart-v2.component.ts
View file @
599aac5b
...
...
@@ -26,7 +26,7 @@ export class ChartV2Component implements OnInit, OnDestroy {
@
Input
()
segments
:
Array
<
any
>
;
@
Input
()
unit
:
string
=
'
number
'
;
@
Input
()
label
:
''
;
@
Input
()
label
:
string
=
''
;
@
Input
()
interval
;
@
Input
()
isMini
:
boolean
=
false
;
...
...
This diff is collapsed.
src/app/modules/analytics/v2/components/benchmark/benchmark.component.html
View file @
599aac5b
...
...
@@ -55,13 +55,13 @@
<!-- <div [ngSwitch]="unit" class="m-chartV2__hoverInfo__row--primary">
<ng-template ngSwitchCase="number">
{{ hoverInfo.value | number: '1.0-0' | abbr }}
{{
rawData.
label | lowercase }}
{{ label | lowercase }}
</ng-template>
<ng-template ngSwitchCase="usd">
{{ hoverInfo.value | currency }} USD
</ng-template>
<ng-template ngSwitchDefault>
{{ hoverInfo.value | number: '1.1-3' }} {{
rawData?.
unit }}
{{ hoverInfo.value | number: '1.1-3' }} {{ unit }}
</ng-template>
</div>
</div> -->
This diff is collapsed.
src/app/modules/wallet/v2/dashboard.component.ts
View file @
599aac5b
...
...
@@ -12,7 +12,7 @@ import { Subscription } from 'rxjs';
import
{
WalletDashboardService
}
from
'
./dashboard.service
'
;
import
{
Session
}
from
'
../../../services/session
'
;
import
{
ActivatedRoute
,
Router
,
ParamMap
}
from
'
@angular/router
'
;
import
{
MindsTitle
}
from
'
../../../services/ux/title
'
;
//
import { MindsTitle } from '../../../services/ux/title';
import
sidebarMenu
from
'
./sidebar-menu.default
'
;
import
{
Menu
}
from
'
../../../common/components/sidebar-menu/sidebar-menu.component
'
;
import
{
ShadowboxHeaderTab
}
from
'
../../../interfaces/dashboard
'
;
...
...
@@ -56,7 +56,7 @@ export class WalletDashboardComponent implements OnInit {
protected
router
:
Router
,
protected
route
:
ActivatedRoute
,
protected
cd
:
ChangeDetectorRef
,
protected
title
:
MindsTitle
,
//
protected title: MindsTitle,
protected
storage
:
Storage
,
@
Inject
(
PLATFORM_ID
)
private
platformId
)
{}
...
...
@@ -75,7 +75,7 @@ export class WalletDashboardComponent implements OnInit {
this
.
onboardingComplete
=
true
;
}
this
.
title
.
setTitle
(
'
Wallet
'
);
//
this.title.setTitle('Wallet');
this
.
wallet
=
this
.
walletService
.
getWallet
();
this
.
route
.
paramMap
.
subscribe
((
params
:
ParamMap
)
=>
{
...
...
This diff is collapsed.
Please
register
or
sign in
to comment