Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleySuira committed Jan 13, 2023
2 parents 2ce9926 + f6f8282 commit a18f072
Show file tree
Hide file tree
Showing 15 changed files with 326 additions and 35 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liquality-wallet",
"version": "0.83.0",
"version": "0.83.2",
"private": true,
"author": "Liquality <[email protected]>",
"scripts": {
Expand Down Expand Up @@ -29,7 +29,7 @@
"@liquality/ethereum-utils": "^1.13.12",
"@liquality/terra-networks": "^1.13.12",
"@liquality/types": "^1.13.12",
"@liquality/wallet-core": "4.6.0",
"@liquality/wallet-core": "4.8.0",
"@terra-money/terra.js": "^3.1.6",
"@testing-library/vue": "^5.8.2",
"amplitude-js": "8.18.2",
Expand Down
21 changes: 21 additions & 0 deletions src/assets/icons/edit_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/locales/cb/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
"eyeInstructions": "Ipahilayo kini gikan sa mga mata sa uban!",
"exportLedger": "Dili ma-export gikan sa usa ka Ledger account",
"createAccount": "Paghimo og Account",
"editAccount": "Edit Account",
"selectNetwork": "Pili ug Network",
"chooseAccountName": "Pilia ang Ngalan sa Account",
"accountAliasErrorFiveChars": "Ang ngalan kinahanglan adunay 5 o labaw pa nga mga karakter",
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
"eyeInstructions": "Keep this away from prying eyes!",
"exportLedger": "Cannot export from a Ledger account",
"createAccount": "Create Account",
"editAccount": "Edit Account",
"selectNetwork": "Select Network",
"chooseAccountName": "Choose Account Name",
"accountAliasErrorFiveChars": "Name should have 5 or more characters",
Expand Down
1 change: 1 addition & 0 deletions src/locales/es/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
"eyeInstructions": "¡Mantén esto alejado de miradas indiscretas!",
"exportLedger": "No se puede exportar de una cuenta de Ledger",
"createAccount": "Crear Cuenta",
"editAccount": "Editar Cuenta",
"selectNetwork": "Selecionar Red",
"chooseAccountName": "Elige un Nombre de Cuenta",
"accountAliasErrorFiveChars": "El nombre debe tener 5 o más caracteres",
Expand Down
1 change: 1 addition & 0 deletions src/locales/ph/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
"eyeInstructions": "Maging mapagmatyag sa mga nanunuod sa paligid",
"exportLedger": "Hindi ma-export mula sa isang Ledger account",
"createAccount": "Gumawa ng Account",
"editAccount": "Edit Account",
"selectNetwork": "Pumili ng Network",
"chooseAccountName": "Pumili ng Account Name",
"accountAliasErrorFiveChars": "Dapat may 5 o higit pang character ang pangalan",
Expand Down
1 change: 1 addition & 0 deletions src/locales/pt/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
"eyeInstructions": "Mantenha a salvo!",
"exportLedger": "Não é possível exportar de uma conta Ledger",
"createAccount": "Criar Conta",
"editAccount": "Edit Account",
"selectNetwork": "Selecionar Rede",
"chooseAccountName": "Escolha o Nome da Conta",
"accountAliasErrorFiveChars": "O nome deve ter 5 ou mais caracteres",
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
"eyeInstructions": "别让他人看到",
"exportLedger": "不能从Ledger账户导出",
"createAccount": "创建新账户",
"editAccount": "Edit Account",
"selectNetwork": "选择网络",
"chooseAccountName": "选择账户名称",
"accountAliasErrorFiveChars": "名称至少5位字符",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"manifest_version": 2,
"version": "0.83.0",
"version": "0.83.2",
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"default_locale": "en",
Expand Down
7 changes: 7 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ const routes = [
props: true,
meta: { protect: true }
},
{
path: '/accounts/edit/:accountId?',
component: () => import('@/views/Accounts/Edit.vue'),
name: 'EditAccount',
props: true,
meta: { protect: true }
},
{
path: '/accounts/hardware-wallet',
component: () => import('@/views/Accounts/HardwareWallet/HardwareWallet.vue'),
Expand Down
45 changes: 29 additions & 16 deletions src/views/Accounts/ChainAccounts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,23 @@
{{ formatFiatUI(formatFiat(account.totalFiatBalance)) }}
</template>
<template #detail>
<toggle-button
:css-colors="true"
:value="account.enabled"
:sync="true"
:disabled="!isChainEnabled(chain.id)"
@change="(e) => toggleAccount([account.id], e.value)"
/>
<div class="d-flex">
<router-link
:to="{ name: 'EditAccount', params: { accountId: account.id } }"
class="edit-link"
:id="'edit-account-plus-icon-' + account.id"
v-tooltip="$t('pages.accounts.editAccount')"
>
<EditIcon />
</router-link>
<toggle-button
:css-colors="true"
:value="account.enabled"
:sync="true"
:disabled="!isChainEnabled(chain.id)"
@change="(e) => toggleAccount([account.id], e.value)"
/>
</div>
</template>
</ListItem>
</div>
Expand All @@ -65,6 +75,7 @@
import { mapState, mapGetters, mapActions } from 'vuex'
import cryptoassets from '@liquality/wallet-core/dist/src/utils/cryptoassets'
import PlusIcon from '@/assets/icons/plus_circle.svg'
import EditIcon from '@/assets/icons/edit_icon.svg'
import { formatFiat, formatFiatUI } from '@liquality/wallet-core/dist/src/utils/coinFormatter'
import { getAccountIcon } from '@/utils/accounts'
import { getChainIcon } from '@/utils/accounts'
Expand All @@ -73,7 +84,8 @@ import ListItem from '@/components/ListItem'
export default {
components: {
PlusIcon,
ListItem
ListItem,
EditIcon
},
props: {
chain: Object
Expand Down Expand Up @@ -171,15 +183,16 @@ export default {
font-size: $font-size-tiny;
color: $text-muted;
}
}
}
.create-link {
width: 20px;
height: 20px;
margin-right: 20px;
svg {
width: 20px;
}
}
.create-link,
.edit-link {
width: 20px;
height: 20px;
margin-right: 20px;
svg {
width: 20px;
}
}
Expand Down
Loading

0 comments on commit a18f072

Please sign in to comment.