2020-10-12 19:41:52 +02:00
|
|
|
<template>
|
|
|
|
<div class="step">
|
2020-10-21 21:45:22 +02:00
|
|
|
<diamond :active="!!data.deployerAddress" />
|
2020-10-12 19:41:52 +02:00
|
|
|
<div class="step-body">
|
|
|
|
<h4>{{ data.title }}</h4>
|
2020-11-03 07:54:19 +01:00
|
|
|
<i18n
|
|
|
|
v-if="data.deployerAddress"
|
|
|
|
class="deployed"
|
|
|
|
tag="div"
|
|
|
|
path="deployedBy"
|
|
|
|
>
|
|
|
|
<template v-slot:link>
|
|
|
|
<a href="#">{{ data.deployerAddress }}</a>
|
|
|
|
</template>
|
|
|
|
</i18n>
|
2020-10-12 19:41:52 +02:00
|
|
|
</div>
|
|
|
|
<div class="step-tail">
|
2020-10-21 21:45:22 +02:00
|
|
|
<div v-if="data.deployerAddress" class="completed">
|
2020-10-12 19:41:52 +02:00
|
|
|
<b-icon icon="check" />
|
2020-11-03 07:54:19 +01:00
|
|
|
<span>{{ $t('completed') }}</span>
|
2020-10-12 19:41:52 +02:00
|
|
|
</div>
|
2020-10-21 16:42:50 +02:00
|
|
|
<b-button
|
|
|
|
v-else
|
|
|
|
type="is-primary"
|
|
|
|
outlined
|
|
|
|
icon-left="tool"
|
|
|
|
@click="onDeploy"
|
|
|
|
>
|
2020-11-03 07:54:19 +01:00
|
|
|
{{ $t('deploy') }}
|
2020-10-12 19:41:52 +02:00
|
|
|
</b-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-10-21 16:42:50 +02:00
|
|
|
import { mapActions } from 'vuex'
|
2020-10-12 19:41:52 +02:00
|
|
|
import Diamond from '@/components/Diamond'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Diamond,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
data: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
2020-10-21 16:42:50 +02:00
|
|
|
methods: {
|
|
|
|
...mapActions('deploy', ['deployContract']),
|
|
|
|
// todo pass ens domain here
|
|
|
|
onDeploy(/* domain */) {
|
2020-10-30 09:01:41 +01:00
|
|
|
// console.log('this.props', this.data)
|
|
|
|
this.deployContract({ domain: this.data.domain })
|
2020-10-21 16:42:50 +02:00
|
|
|
},
|
|
|
|
},
|
2020-10-12 19:41:52 +02:00
|
|
|
}
|
|
|
|
</script>
|