Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Fix API and calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Jul 23, 2020
1 parent 06bd94f commit 8c7c222
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VUE_APP_NETWORK=homestead
VUE_APP_IPFS_NODE=gateway.pinata.cloud
VUE_APP_REST_API=https://vote.balancer.finance
VUE_APP_REST_API=https://beta.vote.balancer.finance
VUE_APP_INFURA_ID=c00cb7215b614b0282964cf1a9b117c0
VUE_APP_ALCHEMY_KEY=rXKbp7PTFm6hcrxU8NL-JGp5RMfRHDwg
PINATA_API_KEY=123...
Expand Down
14 changes: 7 additions & 7 deletions src/components/Modal/Confirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
v-text="'Total voting power'"
class="flex-auto text-gray mr-1"
/>
{{ $n(votingPower.total) }} {{ tokenName }}
{{ $n(votingPower.total) }} {{ symbol }}
</div>
<div
v-if="votingPower.balance && votingPower.bptBalance"
class="d-flex"
>
<span v-text="'Voting power'" class="flex-auto text-gray mr-1" />
{{ $n(votingPower.balance) }} {{ tokenName }}
{{ $n(votingPower.balance) }} {{ symbol }}
</div>
<div v-if="votingPower.bptBalance" class="d-flex">
<span v-text="'BPT voting power'" class="flex-auto text-gray mr-1" />
{{ $n(votingPower.bptBalance) }} {{ tokenName }}
{{ $n(votingPower.bptBalance) }} {{ symbol }}
</div>
</div>
<div class="p-4 overflow-hidden text-center border-top">
Expand Down Expand Up @@ -70,7 +70,7 @@ import namespaces from '@/namespaces.json';
export default {
props: [
'open',
'token',
'namespace',
'proposal',
'id',
'selectedChoice',
Expand All @@ -84,16 +84,16 @@ export default {
};
},
computed: {
tokenName() {
return this.token.symbol || this._shorten(this.token.token);
symbol() {
return this.namespace.symbol || this._shorten(this.namespace.token);
}
},
methods: {
...mapActions(['send']),
async handleSubmit() {
this.loading = true;
await this.send({
token: this.token.token,
token: this.namespace.token,
type: 'vote',
payload: {
proposal: this.id,
Expand Down
5 changes: 4 additions & 1 deletion src/components/Ui/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,16 @@ export default {
this.input = this.formatDate(year, month, day);
this.$emit('input', this.input);
},
isSelectable(year, month, day) {
isSelectable() {
return true;
/*
const in30Days = new Date();
in30Days.setDate(in30Days.getDate() + 30);
return (
new Date(year, month, day) > new Date() &&
new Date(year, month, day) < in30Days
);
*/
}
}
};
Expand Down

0 comments on commit 8c7c222

Please sign in to comment.