oxen-electron-gui-wallet/src/pages/wallet/txhistory.vue

93 lines
2.2 KiB
Vue
Raw Normal View History

2018-09-08 23:44:19 +02:00
<template>
2020-03-03 04:16:23 +01:00
<q-page>
<div class="row q-pt-sm q-mx-md q-mb-sm items-end non-selectable">
2020-03-03 04:16:23 +01:00
<div class="col-5">
{{ $t("titles.transactions") }}
</div>
2018-09-08 23:44:19 +02:00
2021-01-06 06:26:42 +01:00
<OxenField class="col-5 q-px-sm" :label="$t('fieldLabels.filter')">
2020-03-03 04:16:23 +01:00
<q-input
v-model="tx_filter"
:placeholder="$t('placeholders.filterTx')"
UI upgrade (#155) * followed upgrade instructions on quasar site * followed upgrade instructions on quasar site * debug messages now show * Fix template error mode undefined * building and working, UI broken, need to move to new quasar components * move collapsible to expansion-item * moving over components to quasar v1+ * items to labels * items and item side to quasar v1 * fix label typo * item main to item label * q-section to q-item-section * popover to menu * modals to v1 quasar * Remove debug lines, use new dialog methods * move static folder up a dir and rename to public. Change paths accordingly * Exit modal fixed with v1 quasar * UI fixes for v1 quasar * remove link styles * some field updates * Fix more fields and modals for v1 * more fields updated * more fields changed over * wallet settings modals * Fix password confirm dialog issue w/ refactor * begin generalising a copy component * Receive item looking better * Index view vixed for v1 quasar * fix export/import keys modal * tx styles and some others * bunch of small style changes * Fix date display on restore page * completed upgrade to v1 quasar (I think) * lns list fixed, stake buttons fixed * fix favourite checkbox with v1 quasar * Address book fixes * Fix the context menus * clean up * remove mixin from copyicon * Fix webpack * fix QR code view on address detail page * Fix welcome stepper and default to blink * Fix some style issues * radio buttons w/ white circles * clean up * sn style fixes, and other fixes * style fixes and unlock bug fixed * fix daemon typo * Fix some style things * fix button colour Co-authored-by: Kyle Zsembery <zsembery.kyle@gmail.com>
2020-08-31 07:26:06 +02:00
borderless
dense
2020-03-03 04:16:23 +01:00
/>
2021-01-06 06:26:42 +01:00
</OxenField>
2018-09-08 23:44:19 +02:00
2021-01-06 06:26:42 +01:00
<OxenField class="col-2" :label="$t('fieldLabels.filterTransactionType')">
<q-select
v-model="tx_type"
:options="tx_type_options"
borderless
dense
emit-value
map-options
/>
2021-01-06 06:26:42 +01:00
</OxenField>
2018-09-08 23:44:19 +02:00
</div>
2019-06-13 07:46:55 +02:00
<TxList :type="tx_type" :filter="tx_filter" />
2020-03-03 04:16:23 +01:00
</q-page>
2018-09-08 23:44:19 +02:00
</template>
<script>
2020-03-03 04:16:23 +01:00
import { mapState } from "vuex";
import TxList from "components/tx_list";
2021-01-06 06:26:42 +01:00
import OxenField from "components/oxen_field";
2018-09-08 23:44:19 +02:00
export default {
2020-03-03 04:16:23 +01:00
components: {
TxList,
2021-01-06 06:26:42 +01:00
OxenField
2020-03-03 04:16:23 +01:00
},
data() {
return {
tx_type: "all",
tx_filter: "",
tx_type_options: [
{
label: this.$t("strings.transactions.types.all"),
value: "all"
},
{
label: this.$t("strings.transactions.types.incoming"),
value: "in"
},
{
label: this.$t("strings.transactions.types.outgoing"),
value: "out"
},
{
label: this.$t("strings.transactions.types.pending"),
value: "all_pending"
},
{
label: this.$t("strings.transactions.types.miner"),
value: "miner"
},
{
label: this.$t("strings.transactions.types.serviceNode"),
value: "snode"
},
{
label: this.$t("strings.transactions.types.governance"),
value: "gov"
},
{
label: this.$t("strings.transactions.types.stake"),
value: "stake"
},
{
label: this.$t("strings.transactions.types.failed"),
value: "failed"
2018-09-08 23:44:19 +02:00
}
2020-03-03 04:16:23 +01:00
]
};
},
computed: mapState({
theme: state => state.gateway.app.config.appearance.theme,
tx_list: state => state.gateway.wallet.transactions.tx_list
})
};
2018-09-08 23:44:19 +02:00
</script>
2020-03-03 04:16:23 +01:00
<style lang="scss"></style>