Skip to content

Commit

Permalink
restore veto; type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joystream Stats committed Jun 17, 2023
1 parent 2a33c0d commit 72c0a30
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/ui/src/proposals/hooks/useProposalConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const extendsProposalPallet = (

const proposalTypeToConstantKey = new Map<ProposalType, keyof Api['consts']['proposalsCodex']>([
['updateChannelPayouts', 'updateChannelPayoutsProposalParameters'],
['amendConstitution', 'amendConstitutionProposalParameters'],
['cancelWorkingGroupLeadOpening', 'cancelWorkingGroupLeadOpeningProposalParameters'],
['createWorkingGroupLeadOpening', 'createWorkingGroupLeadOpeningProposalParameters'],
['decreaseWorkingGroupLeadStake', 'decreaseWorkingGroupLeadStakeProposalParameters'],
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/proposals/model/proposalDescriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ export const proposalDescriptions: ProposalDescriptions = {
updateChannelPayouts:
'Proposal to submit the Channel Incentives Payout payload, update the min/max claimable amounts and block/allow claiming of awarded JOYs by channels.',
runtimeUpgrade: 'Proposal to upgrade version to the new runtime.',
//veto: 'Veto for a particular, previously issued proposal. Vetoed proposal is automatically discarded.',
veto: 'Veto for a particular, previously issued proposal. Vetoed proposal is automatically discarded.',
}
1 change: 0 additions & 1 deletion packages/ui/src/proposals/model/proposalDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const proposalDetails: ProposalType[] = [
'slashWorkingGroupLead',
'setWorkingGroupLeadReward',
'terminateWorkingGroupLead',
'amendConstitution',
'cancelWorkingGroupLeadOpening',
'setMembershipPrice',
'setCouncilBudgetIncrement',
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/proposals/types/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ export type ProposalType =
| 'setInitialInvitationCount'
| 'setMembershipLeadInvitationQuota'
| 'setReferralCut'
| 'unlockBlogPost'
| 'veto'
| 'updateChannelPayouts'
)

export type DisabledProposal = 'createBlogPost' | 'editBlogPost' | 'lockBlogPost' | 'unlockBlogPost'
export type DisabledProposal = 'veto'

export interface Proposal {
id: string
Expand Down

0 comments on commit 72c0a30

Please sign in to comment.