diff --git a/imports/ui/modules/Vote.js b/imports/ui/modules/Vote.js index 565624a7f..5056c5ac1 100644 --- a/imports/ui/modules/Vote.js +++ b/imports/ui/modules/Vote.js @@ -17,8 +17,10 @@ import { transact, getVotes } from '/imports/api/transactions/transaction'; * @param {string} targetId the id of the targeted element * @return {string} type VOTE, DELEGATION, UNKNOWN */ -const _getVoteType = (targetId) => { - if (targetId === Meteor.userId()) { return 'BALANCE'; } +const _getVoteType = (targetId, sessionId) => { + if (targetId === Meteor.userId() || sessionId.first(17) === 'vote-user-balance') { + return 'BALANCE'; + } const contract = Contracts.findOne({ _id: targetId }); if (contract) { return contract.kind; @@ -132,7 +134,7 @@ export class Vote { this.initialized = true; this.enabled = true; this.mode = 'PENDING'; - this.voteType = _getVoteType(targetId); + this.voteType = _getVoteType(targetId, sessionId); this.targetId = targetId; this.sourceId = sourceId; this.maxVotes = parseInt(this.available + this.inBallot, 10); diff --git a/imports/ui/templates/components/decision/liquid/liquid.js b/imports/ui/templates/components/decision/liquid/liquid.js index 116074a77..dceaa53ac 100644 --- a/imports/ui/templates/components/decision/liquid/liquid.js +++ b/imports/ui/templates/components/decision/liquid/liquid.js @@ -429,7 +429,7 @@ Template.capital.helpers({ return 'stage-finish-rejected'; } if (Session.get(this._id).voteType === 'BALANCE') { - return 'stage-finish-approved'; + return 'stage-placed'; } return 'stage-placed'; case 'received': diff --git a/imports/ui/templates/components/identity/card/card.html b/imports/ui/templates/components/identity/card/card.html index 5c25316b5..6b9a7a19c 100644 --- a/imports/ui/templates/components/identity/card/card.html +++ b/imports/ui/templates/components/identity/card/card.html @@ -1,13 +1,16 @@