2019-02-13 00:09:18 +01:00
|
|
|
<template>
|
2020-03-03 04:16:23 +01:00
|
|
|
<q-page class="service-node-page">
|
2019-04-24 07:40:43 +02:00
|
|
|
<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'
|
|
|
|
}
|
|
|
|
]"
|
|
|
|
/>
|
2019-03-13 22:58:24 +01:00
|
|
|
</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'" />
|
2019-03-13 22:58:24 +01:00
|
|
|
<ServiceNodeRegistration v-if="screen === 'registration'" />
|
2020-03-03 04:16:23 +01:00
|
|
|
</q-page>
|
2019-02-13 00:09:18 +01:00
|
|
|
</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";
|
2019-02-13 00:09:18 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
2019-02-13 00:09:18 +01:00
|
|
|
</script>
|
|
|
|
|
2020-03-03 04:16:23 +01:00
|
|
|
<style lang="scss"></style>
|