Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix treasury page, and disable propose button #11032

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/apps-routing/src/treasury.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ export default function create (t: TFunction): Route {
return {
Component,
display: {
needsApi: [
'tx.treasury.proposeSpend'
]
needsApi: []
},
group: 'governance',
icon: 'gem',
Expand Down
10 changes: 7 additions & 3 deletions packages/page-treasury/src/Overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ function Overview ({ className, isMember, members }: Props): React.ReactElement<
approvalCount={info?.approvals.length}
proposalCount={info?.proposals.length}
/>
<Button.Group>
<ProposalCreate />
</Button.Group>
{
api.tx.treasury.proposeSpend
? <Button.Group>
<ProposalCreate />
</Button.Group>
: <></>
}
<Proposals
isMember={isMember}
members={members}
Expand Down
Loading