File tree Expand file tree Collapse file tree
Blockcore.Features.ColdStaking/UI
Blockcore.Features.Miner/UI
Blockcore.Features.NodeHost/UI/Shared
Blockcore.Features.Wallet/UI Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ public interface INavigationItem
1010 public string Navigation { get ; }
1111 public string Icon { get ; }
1212 public bool IsVisible { get ; }
13+ public int NavOrder { get ; }
1314
1415 }
1516}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public ColdStakingNavigationItem(IWalletManager WalletManager)
1717 public string Navigation => "ColdStaking" ;
1818 public string Icon => "oi-pulse" ;
1919 public bool IsVisible => this . WalletManager ? . ContainsWallets ?? false ;
20+ public int NavOrder => 30 ;
2021
2122 }
2223}
Original file line number Diff line number Diff line change @@ -16,5 +16,6 @@ public StakeNavigationItem(IWalletManager WalletManager)
1616 public string Navigation => "Stake" ;
1717 public string Icon => "oi-bolt" ;
1818 public bool IsVisible => this . WalletManager ? . ContainsWallets ?? false ;
19+ public int NavOrder => 20 ;
1920 }
2021}
Original file line number Diff line number Diff line change 2020
2121 @{
2222 var items = fullnode .NodeService <IEnumerable <INavigationItem >>();
23- foreach (var item in items )
23+ foreach (var item in items . OrderBy ( i => i . NavOrder ) )
2424 {
2525 if (item .IsVisible ) {
2626 < li class = " nav-item px-3" >
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ namespace Blockcore.Features.Wallet.UI
55 public class WalletNavigationItem : INavigationItem
66 {
77 public string Name => "Wallets" ;
8-
98 public string Navigation => "Wallets" ;
109 public string Icon => "oi-folder" ;
1110 public bool IsVisible => true ;
11+ public int NavOrder => 10 ;
1212 }
1313}
You can’t perform that action at this time.
0 commit comments