-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: improve proposal details ui (#2067)
Co-authored-by: Jean Ribeiro <[email protected]>
- Loading branch information
1 parent
6c043e9
commit 3939302
Showing
6 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
packages/desktop/views/dashboard/governance/components/ProposalListMenu.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script lang="typescript"> | ||
import { IconName, Menu } from '@bloomwalletio/ui' | ||
import { localize } from '@core/i18n' | ||
import { PopupId, openPopup } from '@desktop/auxiliary/popup' | ||
let menu: Menu | undefined | ||
function onAddProposalClick(): void { | ||
openPopup({ | ||
id: PopupId.AddProposal, | ||
overflow: true, | ||
}) | ||
menu?.close() | ||
} | ||
</script> | ||
|
||
<Menu | ||
bind:this={menu} | ||
items={[ | ||
{ | ||
icon: IconName.Import, | ||
title: localize('actions.addProposal'), | ||
onClick: onAddProposalClick, | ||
}, | ||
]} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters