oxen-electron-gui-wallet/src/pages/wallet/service-node.vue

49 lines
1.2 KiB
Vue
Raw Normal View History

<template>
2020-03-03 04:16:23 +01:00
<q-page class="service-node-page">
<div class="header row items-center justify-center q-pt-md">
2020-03-03 04:16:23 +01:00
<q-btn-toggle
v-model="screen"
toggle-color="primary"
2021-01-06 06:26:42 +01:00
color="accent"
2020-03-03 04:16:23 +01:00
:options="[
2020-09-08 02:50:11 +02:00
{
label: $t('titles.serviceNode.myStakes'),
value: 'myStakes'
},
2020-03-03 04:16:23 +01:00
{
label: $t('titles.serviceNode.staking'),
value: 'staking'
},
{
label: $t('titles.serviceNode.registration'),
value: 'registration'
}
]"
/>
</div>
2020-09-08 02:50:11 +02:00
<ServiceNodeUnlock v-if="screen === 'myStakes'" />
2020-03-03 04:16:23 +01:00
<ServiceNodeStaking v-if="screen === 'staking'" />
<ServiceNodeRegistration v-if="screen === 'registration'" />
2020-03-03 04:16:23 +01:00
</q-page>
</template>
<script>
2020-09-03 03:18:40 +02:00
import ServiceNodeStaking from "components/service_node/service_node_staking";
import ServiceNodeRegistration from "components/service_node/service_node_registration";
2020-09-08 02:50:11 +02:00
import ServiceNodeUnlock from "components/service_node/service_node_unlock";
export default {
2020-03-03 04:16:23 +01:00
components: {
ServiceNodeStaking,
2020-09-08 02:50:11 +02:00
ServiceNodeRegistration,
ServiceNodeUnlock
2020-03-03 04:16:23 +01:00
},
data() {
return {
2020-09-08 07:40:27 +02:00
screen: "staking"
2020-03-03 04:16:23 +01:00
};
}
};
</script>
2020-03-03 04:16:23 +01:00
<style lang="scss"></style>