Compare commits

...

6 Commits

Author SHA1 Message Date
Sean fbc06a407b
Merge pull request #320 from oxen-io/sort-sn-staked-list
Sorts the "MY STAKES" service node list alphabetically
2022-08-23 07:17:45 +10:00
Sean 64b38e7abc
Merge pull request #319 from oxen-io/bump-1-8-0
Bump to v1.8.0
2022-08-23 07:17:33 +10:00
Sean a7b9274ddd
Merge pull request #321 from oxen-io/header-text-visability
Header text made visable for hardware wallet list
2022-08-23 07:17:18 +10:00
Sean Darcy 3248e03924 Header text made visable for hardware wallet list
The headers for "Hardware Wallets" and "Normal Wallets" was not visable
due to default white color. This makes it visible.
2022-08-19 16:28:10 +10:00
Sean Darcy 165c140588 Bump to v1.8.0 2022-08-15 11:56:28 +10:00
Sean Darcy c44a3666f3 Sorts the "MY STAKES" service node list alphabetically
The list provided to users under service nodes -> my stakes previously
had no sorting, which made it slightly difficult to find the service
node as they would appear in a random order. This simply applys an
alphabetical ordering over the service node pubkeys so that service node
pubkey "0fa72..." will appear before pubkey "7eee3..."
2022-08-15 11:52:25 +10:00
3 changed files with 29 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{
"name": "oxen-electron-wallet",
"version": "1.7.2",
"version": "1.8.0",
"description": "Modern GUI interface for Oxen Currency",
"productName": "Oxen Electron Wallet",
"repository": {

View File

@ -72,13 +72,20 @@ export default {
node.contributors.find(
c => c.address === this.our_address && c.amount > 0
);
return nodes.filter(getOurContribution).map(n => {
const ourContribution = getOurContribution(n);
return {
...n,
ourContributionAmount: ourContribution.amount
};
});
return nodes
.filter(getOurContribution)
.sort((a, b) => {
if (a.service_node_pubkey < b.service_node_pubkey) return -1;
if (a.service_node_pubkey > b.service_node_pubkey) return 1;
return 0;
})
.map(n => {
const ourContribution = getOurContribution(n);
return {
...n,
ourContributionAmount: ourContribution.amount
};
});
},
fetching: state => state.gateway.daemon.service_nodes.fetching
}),

View File

@ -31,9 +31,13 @@
</div>
<div class="hr-separator" />
<!-- Hardware wallets -->
<q-list-header v-if="hardware_wallets.length">{{
$t("strings.hardwareWallets")
}}</q-list-header>
<q-list-header v-if="hardware_wallets.length">
<div class="header row justify-between items-center">
<div class="header-title">
{{ $t("strings.hardwareWallets") }}
</div>
</div>
</q-list-header>
<WalletListItem
v-for="wallet in hardware_wallets"
:key="`${wallet.address}-${wallet.name}`"
@ -41,9 +45,13 @@
:open-wallet="openWallet"
/>
<!-- Regular wallets -->
<q-list-header v-if="hardware_wallets.length">{{
$t("strings.regularWallets")
}}</q-list-header>
<q-list-header v-if="hardware_wallets.length">
<div class="header row justify-between items-center">
<div class="header-title">
{{ $t("strings.regularWallets") }}
</div>
</div>
</q-list-header>
<WalletListItem
v-for="wallet in regular_wallets"
:key="`${wallet.address}-${wallet.name}`"