Skip to content

Commit

Permalink
Merge pull request #10 from ArqTras/master
Browse files Browse the repository at this point in the history
Cz + more translation fields
  • Loading branch information
ArqTras authored Aug 5, 2019
2 parents 7838ff0 + 67192fc commit 70f512d
Show file tree
Hide file tree
Showing 10 changed files with 538 additions and 42 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arqma-electron-wallet",
"version": "1.0.5",
"version": "1.0.6",
"daemonVersion": "4.0.0",
"description": "Modern GUI interface for Arqma Currency",
"productName": "Arqma Electron Wallet",
Expand Down
31 changes: 17 additions & 14 deletions src/components/address_book_details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<q-toolbar slot="header" color="dark" inverted>
<q-btn flat round dense icon="reply" @click="close()" />
<q-toolbar-title v-if="mode=='new'">
Add address book entry
{{ $t("strings.addAddressBookEntry") }}
</q-toolbar-title>
<q-toolbar-title v-else-if="mode=='edit'">
Edit address book entry
{{ $t("strings.editAddressBookEntry") }}
</q-toolbar-title>

<q-btn v-if="mode=='edit'" flat no-ripple @click="cancelEdit()" label="Cancel" />
<q-btn class="q-ml-sm" color="primary" @click="save()" label="Save" />
<q-btn v-if="mode=='edit'" flat no-ripple @click="cancelEdit()" :label="$t('buttons.cancel')" />
<q-btn class="q-ml-sm" color="primary" @click="save()" :label="$t('buttons.save')" />

</q-toolbar>
<div>
Expand All @@ -21,11 +21,14 @@

<q-item>
<q-item-side>
<Identicon :address="newEntry.address" menu />
<div class="wallet-icon">
<svg width="48" viewBox="0 0 17 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="si-glyph si-glyph-wallet"><defs class="si-glyph-fill"></defs><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(1.000000, 0.000000)" fill="#434343"><path d="M7.988,10.635 L7.988,8.327 C7.988,7.578 8.561,6.969 9.267,6.969 L13.964,6.969 L13.964,5.531 C13.964,4.849 13.56,4.279 13.007,4.093 L13.007,4.094 L11.356,4.08 L11.336,4.022 L3.925,4.022 L3.784,4.07 L1.17,4.068 L1.165,4.047 C0.529,4.167 0.017,4.743 0.017,5.484 L0.017,13.437 C0.017,14.269 0.665,14.992 1.408,14.992 L12.622,14.992 C13.365,14.992 13.965,14.316 13.965,13.484 L13.965,12.031 L9.268,12.031 C8.562,12.031 7.988,11.384 7.988,10.635 L7.988,10.635 Z" class="si-glyph-fill"></path><path d="M14.996,8.061 L14.947,8.061 L9.989,8.061 C9.46,8.061 9.031,8.529 9.031,9.106 L9.031,9.922 C9.031,10.498 9.46,10.966 9.989,10.966 L14.947,10.966 L14.996,10.966 C15.525,10.966 15.955,10.498 15.955,9.922 L15.955,9.106 C15.955,8.528 15.525,8.061 14.996,8.061 L14.996,8.061 Z M12.031,10.016 L9.969,10.016 L9.969,9 L12.031,9 L12.031,10.016 L12.031,10.016 Z" class="si-glyph-fill"></path><path d="M3.926,4.022 L10.557,1.753 L11.337,4.022 L12.622,4.022 C12.757,4.022 12.885,4.051 13.008,4.092 L11.619,0.051 L1.049,3.572 L1.166,4.048 C1.245,4.033 1.326,4.023 1.408,4.023 L3.926,4.023 L3.926,4.022 Z" class="si-glyph-fill"></path></g></g></svg>
</div>

</q-item-side>
<q-item-main>
<q-field>
<q-input v-model="newEntry.address" float-label="Address"
<q-input v-model="newEntry.address" :float-label="$t('fieldLabels.address')"
@blur="$v.newEntry.address.$touch"
:error="$v.newEntry.address.$error"
:dark="theme=='dark'"
Expand All @@ -37,7 +40,7 @@
<q-item>
<q-item-main>
<q-field>
<q-input v-model="newEntry.name" float-label="Name" :dark="theme=='dark'" />
<q-input v-model="newEntry.name" :float-label="$t('fieldLabels.name')" :dark="theme=='dark'" />
</q-field>
</q-item-main>
<q-item-side>
Expand All @@ -53,7 +56,7 @@
<q-item>
<q-item-main>
<q-field>
<q-input v-model="newEntry.payment_id" float-label="Payment ID (optional)"
<q-input v-model="newEntry.payment_id" :float-label="$t('strings.paymentID')"
@blur="$v.newEntry.payment_id.$touch"
:error="$v.newEntry.payment_id.$error"
:dark="theme=='dark'"
Expand All @@ -65,7 +68,7 @@
<q-item>
<q-item-main>
<q-field>
<q-input v-model="newEntry.description" type="textarea" float-label="Notes (optional)" :dark="theme=='dark'" />
<q-input v-model="newEntry.description" type="textarea" :float-label="$t('strings.notes')" :dark="theme=='dark'" />
</q-field>
</q-item-main>
</q-item>
Expand All @@ -74,7 +77,7 @@
<q-item v-if="mode=='edit'">
<q-item-main>
<q-field>
<q-btn class="float-right" color="red" @click="deleteEntry()" label="Delete" />
<q-btn class="float-right" color="red" @click="deleteEntry()" :label="$t('buttons.delete')" />
</q-field>
</q-item-main>
</q-item>
Expand All @@ -88,17 +91,17 @@
<q-toolbar slot="header" color="dark" inverted>
<q-btn flat round dense icon="reply" @click="close()" />
<q-toolbar-title>
Address book details
{{ $t("strings.addressBookDetails") }}
</q-toolbar-title>
<q-btn class="q-mr-sm"
flat no-ripple
:disable="!is_ready"
@click="edit()" label="Edit" />
@click="edit()" :label="$t('buttons.edit')" />
<q-btn
color="primary"
:disabled="view_only"
@click="sendToAddress"
label="Send coins" />
:label="$t('buttons.sendCoins')" />
</q-toolbar>
<div class="layout-padding">

Expand All @@ -116,7 +119,7 @@

<div class="non-selectable">
<q-icon name="history" size="24px" />
<span class="vertical-middle q-ml-xs">Recent transactions with this address</span>
<span class="vertical-middle q-ml-xs">{{ $t("strings.recentTransactionsWithAddress") }}</span>
</div>

<TxList type="in" :limit="5" :to-outgoing-address="entry.address" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/tx_list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>

<template v-if="tx_list_paged.length === 0">
<p class="q-pa-md q-mb-none">No transactions found</p>
<p class="q-pa-md q-mb-none">{{ $t("strings.noTransactionsFound") }}</p>
</template>

<template v-else>
Expand Down
Loading

0 comments on commit 70f512d

Please sign in to comment.