|
|
@ -66,6 +66,7 @@ export class GfMarketsComponent implements OnInit { |
|
|
protected fearAndGreedIndex: number | undefined; |
|
|
protected fearAndGreedIndex: number | undefined; |
|
|
protected fearAndGreedIndexMode: FearAndGreedIndexMode = 'STOCKS'; |
|
|
protected fearAndGreedIndexMode: FearAndGreedIndexMode = 'STOCKS'; |
|
|
protected hasPermissionToAccessFearAndGreedIndex: boolean; |
|
|
protected hasPermissionToAccessFearAndGreedIndex: boolean; |
|
|
|
|
|
protected hasPermissionToOpenBenchmarkDetails = false; |
|
|
protected hasPermissionToReadMarketDataOfMarkets: boolean; |
|
|
protected hasPermissionToReadMarketDataOfMarkets: boolean; |
|
|
protected historicalDataItems: LineChartItem[]; |
|
|
protected historicalDataItems: LineChartItem[]; |
|
|
protected isLoadingFearAndGreedIndex = true; |
|
|
protected isLoadingFearAndGreedIndex = true; |
|
|
@ -99,6 +100,8 @@ export class GfMarketsComponent implements OnInit { |
|
|
if (state?.user) { |
|
|
if (state?.user) { |
|
|
this.user = state.user; |
|
|
this.user = state.user; |
|
|
|
|
|
|
|
|
|
|
|
this.hasPermissionToOpenBenchmarkDetails = true; |
|
|
|
|
|
|
|
|
this.hasPermissionToReadMarketDataOfMarkets = hasPermission( |
|
|
this.hasPermissionToReadMarketDataOfMarkets = hasPermission( |
|
|
this.user.permissions, |
|
|
this.user.permissions, |
|
|
permissions.readMarketDataOfMarkets |
|
|
permissions.readMarketDataOfMarkets |
|
|
|