Skip to content

Commit 4265a89

Browse files
authored
Multisig Ledger Feature Flag (#296)
1 parent 3c99b21 commit 4265a89

File tree

4 files changed

+12
-20
lines changed

4 files changed

+12
-20
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renderer/intl/locales/en-US.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,6 @@
544544
"TzwzhT": {
545545
"message": "You can remove and reimport your accounts whenever you like, provided that you possess the account keys. It is highly recommended to maintain a backup of your account keys in a secure location."
546546
},
547-
"U78NhE": {
548-
"message": "Complete"
549-
},
550547
"ULXFfP": {
551548
"message": "Receive"
552549
},
@@ -733,9 +730,6 @@
733730
"hR0flV": {
734731
"message": "All your transactions, whether in $IRON or other custom assets, will be displayed in this section. To start a transaction, simply click on the 'Send' or 'Receive' tabs."
735732
},
736-
"iFsDVR": {
737-
"message": "Loading"
738-
},
739733
"iWiHY7": {
740734
"message": "The blockchain is syncing. Your balance may be inaccurate and sending transactions will be disabled until the sync is complete."
741735
},
@@ -775,9 +769,6 @@
775769
"kTt/ND": {
776770
"message": "Russian"
777771
},
778-
"kbpDqo": {
779-
"message": "Preparing destination txn"
780-
},
781772
"krty63": {
782773
"message": "Need help?"
783774
},
@@ -865,9 +856,6 @@
865856
"rGIQdX": {
866857
"message": "Back to Account Overview"
867858
},
868-
"raexxM": {
869-
"message": "Submitted"
870-
},
871859
"rbrahO": {
872860
"message": "Close"
873861
},
@@ -877,9 +865,6 @@
877865
"rqrhXg": {
878866
"message": "Confirm Your Recovery Phrase"
879867
},
880-
"rrBTkh": {
881-
"message": "Submitted destination txn"
882-
},
883868
"sXlL42": {
884869
"message": "Encrypted Wallets Unsupported"
885870
},
@@ -922,9 +907,6 @@
922907
"vV69eP": {
923908
"message": "Downloading a snapshot is the fastest way to sync with the network."
924909
},
925-
"vXCeIi": {
926-
"message": "Failed"
927-
},
928910
"vaP4MI": {
929911
"message": "It currently holds:"
930912
},

renderer/layouts/MainLayout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ function Sidebar() {
144144
</Box>
145145
<VStack alignItems="flex-start" flexGrow={1}>
146146
{LINKS.map(({ label, href, icon, id }) => {
147+
// Multisig Ledger is only visible if the flag is enabled
148+
if (id === "multisigLedger" && !flags.multisigLedger.enabled) {
149+
return null;
150+
}
147151
// The bridge tab is only visible if the flag is enabled and we're not on mainnet
148152
if (id === "bridge" && !flags.chainportBridge.enabled) {
149153
return null;

renderer/providers/FeatureFlagsProvider.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ const FLAGS_DEFINITION = [
2727
"Turning this flag on will allow double clicking the logo to change the theme",
2828
key: "themeToggle",
2929
},
30+
{
31+
name: "Multisig Ledger",
32+
description:
33+
"Turning this flag on will allow you to use a Ledger device to sign transactions using a multisig wallet. You will need to have the Ironfish DKG app installed on your Ledger device.",
34+
key: "multisigLedger",
35+
},
3036
] as const;
3137

3238
type FlagsDefinition = Writable<(typeof FLAGS_DEFINITION)[number]>;

0 commit comments

Comments
 (0)