Skip to content

Commit

Permalink
feat: select track update chips (#2477)
Browse files Browse the repository at this point in the history
  • Loading branch information
sokolova-an authored Oct 15, 2024
1 parent 754898d commit b5b8025
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/renderer/entities/governance/constants/tracks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ export const adminTracks = [
value: 'governance.addDelegation.tracks.staking',
description: 'governance.addDelegation.tracks.stakingDescription',
},
{
id: '15',
value: 'governance.addDelegation.tracks.crowdloans',
description: 'governance.addDelegation.tracks.crowdloansDescription',
},
];

export const governanceTracks = [
Expand All @@ -61,6 +56,11 @@ export const governanceTracks = [
value: 'governance.addDelegation.tracks.governanceLease',
description: 'governance.addDelegation.tracks.governanceLeaseDescription',
},
{
id: '15',
value: 'governance.addDelegation.tracks.crowdloans',
description: 'governance.addDelegation.tracks.crowdloansDescription',
},
{
id: '14',
value: 'governance.addDelegation.tracks.governanceRegistrar',
Expand Down
1 change: 1 addition & 0 deletions src/renderer/shared/api/translation/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"stakingDescription": "Origin for canceling slashes.",
"treasuryAny": "Treasury: Any",
"treasuryAnyDescription": "Origin for spending (any amount of) funds until the upper limit of { value } { asset } or equivalent value in stablecoins.",
"treasuryAnyDescriptionGeneral": "Origin for spending (any amount of) funds until the upper limit",
"treasuryBigSpend": "Treasury: Big spend",
"treasuryBigSpendDescription": "Origin able to spend up to { value } { asset } from the treasury at once or equivalent value in stablecoins.",
"treasuryBigSpendDescriptionGeneral": "Origin able to spend big amount from the treasury.",
Expand Down
8 changes: 0 additions & 8 deletions src/renderer/widgets/DelegateModal/ui/SelectTracksForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ export const SelectTrackForm = ({ isOpen, onClose }: Props) => {
>
{t('governance.addDelegation.group.selectAll')}
</Button>
<Button
disabled={accounts.length === 0}
pallet={getGroupPallet(adminTracks, votedTracks, tracks)}
variant="chip"
onClick={() => selectTracksModel.events.tracksSelected(getTrackIds(adminTracks, votedTracks))}
>
{t('governance.addDelegation.group.admin')}
</Button>
<Button
disabled={accounts.length === 0}
pallet={getGroupPallet(governanceTracks, votedTracks, tracks)}
Expand Down

0 comments on commit b5b8025

Please sign in to comment.