@@ -20,8 +20,6 @@ const props = defineProps({
2020})
2121
2222const expand = ref ([" inactive" , " active" ].includes (props .proposal .status ))
23-
24- const votingPeriod = ref (appStore .constants .gov .voting_period .replace (" s" , " " ))
2523 </script >
2624
2725<template >
@@ -40,12 +38,11 @@ const votingPeriod = ref(appStore.constants.gov.voting_period.replace("s", ""))
4038
4139 <div v-for =" dot in 4" class =" dot" />
4240
43- <Flex v-if = " isMainnet() " align =" center" gap =" 6" >
41+ <Flex align =" center" gap =" 6" >
4442 <Icon name =" time" size =" 12" color =" secondary" />
4543 <Text size =" 12" weight =" 600" color =" primary" >
4644 {{
47- DateTime.fromISO(proposal.activation_time)
48- .plus({ seconds: votingPeriod })
45+ DateTime.fromISO(proposal.end_time)
4946 .diff(DateTime.fromISO(proposal.activation_time), "days")
5047 .toObject()
5148 .days.toFixed(0)
@@ -56,15 +53,14 @@ const votingPeriod = ref(appStore.constants.gov.voting_period.replace("s", ""))
5653
5754 <div v-for =" dot in 4" class =" dot" />
5855
59- <Text v-if = " isMainnet() " size =" 12" weight =" 600" color =" secondary" align =" right" >
56+ <Text size =" 12" weight =" 600" color =" secondary" align =" right" >
6057 {{
61- DateTime.fromISO(proposal.activation_time )
62- .plus({ seconds: votingPeriod })
58+ DateTime.fromISO(proposal.end_time )
59+
6360 .setLocale("en")
6461 .toLocaleString(DateTime.DATE_MED)
6562 }}
6663 </Text >
67- <Text v-else size =" 12" weight =" 600" color =" tertiary" align =" right" > Unknown </Text >
6864 </Flex >
6965 </Badge >
7066
@@ -91,30 +87,19 @@ const votingPeriod = ref(appStore.constants.gov.voting_period.replace("s", ""))
9187 <Text size =" 12" weight =" 500" color =" tertiary" >{{ DateTime.fromISO(proposal.activation_time).toFormat("FF") }}</Text >
9288 </Flex >
9389 </Flex >
94- <Flex v-if = " isMainnet() " gap =" 12" >
90+ <Flex gap =" 12" >
9591 <div :class =" $style.circle" />
9692
9793 <Flex direction =" column" gap =" 8" >
98- <Text size =" 13" weight =" 600" color =" secondary" >End of voting period </Text >
94+ <Text size =" 13" weight =" 600" color =" secondary" >End of voting</Text >
9995 <Text size =" 12" weight =" 500" color =" tertiary" >
100- {{ DateTime.fromISO(proposal.activation_time).plus({ seconds: votingPeriod } ).toFormat("FF") }}
96+ {{ DateTime.fromISO(proposal.end_time ).toFormat("FF") }}
10197 </Text >
10298 </Flex >
10399 </Flex >
104100
105101 <div :class =" $style.line" />
106102 </Flex >
107-
108- <Flex gap =" 12" style =" margin-top : 8px " >
109- <div :class =" [$style.circle, $style.red]" />
110-
111- <Flex direction =" column" gap =" 8" >
112- <Text size =" 13" weight =" 600" color =" secondary" >Deadline for deposit</Text >
113- <Text size =" 12" weight =" 500" color =" tertiary" >
114- {{ DateTime.fromISO(proposal.deposit_time).toFormat("FF") }}
115- </Text >
116- </Flex >
117- </Flex >
118103 </template >
119104 </Flex >
120105</template >
0 commit comments