Skip to content
Open
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
2 changes: 2 additions & 0 deletions public/locales/ca-CA/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@
"account_flag_title_lsf_disable_master": null,
"account_flag_title_lsf_default_ripple": null,
"account_flag_title_lsf_allow_trustline_clawback": null,
"account_flag_title_lsf_allow_trustline_locking": null,
"account_flag_title_lsf_require_destination_tag": null,
"account_flag_title_lsf_no_freeze": null,
"account_flag_title_lsf_require_auth": null,
Expand All @@ -653,6 +654,7 @@
"account_flag_description_lsf_disable_master": null,
"account_flag_description_lsf_default_ripple": null,
"account_flag_description_lsf_allow_trustline_clawback": null,
"account_flag_description_lsf_allow_trustline_locking": null,
"account_flag_description_lsf_require_destination_tag": null,
"account_flag_description_lsf_no_freeze": null,
"account_flag_description_lsf_require_auth": null,
Expand Down
2 changes: 2 additions & 0 deletions public/locales/en-US/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@
"account_flag_title_lsf_disable_master": "Master Key Disabled",
"account_flag_title_lsf_default_ripple": "Rippling",
"account_flag_title_lsf_allow_trustline_clawback": "Clawback",
"account_flag_title_lsf_allow_trustline_locking": "Escrow",
"account_flag_title_lsf_require_destination_tag": "Require Destination Tag",
"account_flag_title_lsf_no_freeze": "No Freeze",
"account_flag_title_lsf_require_auth": "Require Authorization",
Expand All @@ -685,6 +686,7 @@
"account_flag_description_lsf_disable_master": "Disable the account's master key pair.",
"account_flag_description_lsf_default_ripple": "Enable rippling on this account's trust lines by default.",
"account_flag_description_lsf_allow_trustline_clawback": "Allow account to claw back tokens it has issued.",
"account_flag_description_lsf_allow_trustline_locking": "Allow Trust Line tokens (IOUs) issued by this account to be held in escrow.",
"account_flag_description_lsf_require_destination_tag": "Require a destination tag to send transactions to this account.",
"account_flag_description_lsf_no_freeze": "Permanently give up the ability to freeze individual trust lines or disable Global Freeze. This flag can never be disabled after being enabled.",
"account_flag_description_lsf_require_auth": "Require authorization for users to hold balances issued by this address.",
Expand Down
2 changes: 2 additions & 0 deletions public/locales/es-ES/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@
"account_flag_title_lsf_disable_master": null,
"account_flag_title_lsf_default_ripple": null,
"account_flag_title_lsf_allow_trustline_clawback": null,
"account_flag_title_lsf_allow_trustline_locking": null,
"account_flag_title_lsf_require_destination_tag": null,
"account_flag_title_lsf_no_freeze": null,
"account_flag_title_lsf_require_auth": null,
Expand All @@ -657,6 +658,7 @@
"account_flag_description_lsf_disable_master": null,
"account_flag_description_lsf_default_ripple": null,
"account_flag_description_lsf_allow_trustline_clawback": null,
"account_flag_description_lsf_allow_trustline_locking": null,
"account_flag_description_lsf_require_destination_tag": null,
"account_flag_description_lsf_no_freeze": null,
"account_flag_description_lsf_require_auth": null,
Expand Down
2 changes: 2 additions & 0 deletions public/locales/fr-FR/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@
"account_flag_title_lsf_disable_master": null,
"account_flag_title_lsf_default_ripple": null,
"account_flag_title_lsf_allow_trustline_clawback": null,
"account_flag_title_lsf_allow_trustline_locking": null,
"account_flag_title_lsf_require_destination_tag": null,
"account_flag_title_lsf_no_freeze": null,
"account_flag_title_lsf_require_auth": null,
Expand All @@ -660,6 +661,7 @@
"account_flag_description_lsf_disable_master": null,
"account_flag_description_lsf_default_ripple": null,
"account_flag_description_lsf_allow_trustline_clawback": null,
"account_flag_description_lsf_allow_trustline_locking": null,
"account_flag_description_lsf_require_destination_tag": null,
"account_flag_description_lsf_no_freeze": null,
"account_flag_description_lsf_require_auth": null,
Expand Down
2 changes: 2 additions & 0 deletions public/locales/ja-JP/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@
"account_flag_title_lsf_disable_master": null,
"account_flag_title_lsf_default_ripple": null,
"account_flag_title_lsf_allow_trustline_clawback": null,
"account_flag_title_lsf_allow_trustline_locking": null,
"account_flag_title_lsf_require_destination_tag": null,
"account_flag_title_lsf_no_freeze": null,
"account_flag_title_lsf_require_auth": null,
Expand All @@ -659,6 +660,7 @@
"account_flag_description_lsf_disable_master": null,
"account_flag_description_lsf_default_ripple": null,
"account_flag_description_lsf_allow_trustline_clawback": null,
"account_flag_description_lsf_allow_trustline_locking": null,
"account_flag_description_lsf_require_destination_tag": null,
"account_flag_description_lsf_no_freeze": null,
"account_flag_description_lsf_require_auth": null,
Expand Down
2 changes: 2 additions & 0 deletions public/locales/ko-KR/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@
"account_flag_title_lsf_disable_master": null,
"account_flag_title_lsf_default_ripple": null,
"account_flag_title_lsf_allow_trustline_clawback": null,
"account_flag_title_lsf_allow_trustline_locking": null,
"account_flag_title_lsf_require_destination_tag": null,
"account_flag_title_lsf_no_freeze": null,
"account_flag_title_lsf_require_auth": null,
Expand All @@ -657,6 +658,7 @@
"account_flag_description_lsf_disable_master": null,
"account_flag_description_lsf_default_ripple": null,
"account_flag_description_lsf_allow_trustline_clawback": null,
"account_flag_description_lsf_allow_trustline_locking": null,
"account_flag_description_lsf_require_destination_tag": null,
"account_flag_description_lsf_no_freeze": null,
"account_flag_description_lsf_require_auth": null,
Expand Down
2 changes: 2 additions & 0 deletions public/locales/my-MM/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@
"account_flag_title_lsf_disable_master": null,
"account_flag_title_lsf_default_ripple": null,
"account_flag_title_lsf_allow_trustline_clawback": null,
"account_flag_title_lsf_allow_trustline_locking": null,
"account_flag_title_lsf_require_destination_tag": null,
"account_flag_title_lsf_no_freeze": null,
"account_flag_title_lsf_require_auth": null,
Expand All @@ -656,6 +657,7 @@
"account_flag_description_lsf_disable_master": null,
"account_flag_description_lsf_default_ripple": null,
"account_flag_description_lsf_allow_trustline_clawback": null,
"account_flag_description_lsf_allow_trustline_locking": null,
"account_flag_description_lsf_require_destination_tag": null,
"account_flag_description_lsf_no_freeze": null,
"account_flag_description_lsf_require_auth": null,
Expand Down
6 changes: 6 additions & 0 deletions src/containers/Accounts/AccountSummary/FlagsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ const FlagsCard = ({ account }: FlagsCardProps) => {
description: t('account_flag_description_lsf_allow_trustline_clawback'),
enabled: accountFlags.includes('lsfAllowTrustLineClawback'),
},
{
key: 'lsfAllowTrustLineLocking',
title: t('account_flag_title_lsf_allow_trustline_locking'),
description: t('account_flag_description_lsf_allow_trustline_locking'),
enabled: accountFlags.includes('lsfAllowTrustLineLocking'),
},
{
key: 'lsfRequireDestTag',
title: t('account_flag_title_lsf_require_destination_tag'),
Expand Down
10 changes: 5 additions & 5 deletions src/containers/Accounts/AccountSummary/test/FlagsCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('FlagsCard Component', () => {
expect(screen.getByText('Flags')).toBeInTheDocument()
})

it('renders all 15 flag items', () => {
it('renders all 16 flag items', () => {
const account = {
info: {
flags: [],
Expand All @@ -39,7 +39,7 @@ describe('FlagsCard Component', () => {
)

const flagItems = container.querySelectorAll('.flag-item')
expect(flagItems.length).toBe(15)
expect(flagItems.length).toBe(16)
})
})

Expand Down Expand Up @@ -730,7 +730,7 @@ describe('FlagsCard Component', () => {

expect(screen.getByText('Flags')).toBeInTheDocument()
const flagItems = container.querySelectorAll('.flag-item')
expect(flagItems.length).toBe(15)
expect(flagItems.length).toBe(16)
})

it('handles missing info object', () => {
Expand All @@ -744,7 +744,7 @@ describe('FlagsCard Component', () => {

expect(screen.getByText('Flags')).toBeInTheDocument()
const flagItems = container.querySelectorAll('.flag-item')
expect(flagItems.length).toBe(15)
expect(flagItems.length).toBe(16)
})

it('handles empty account object', () => {
Expand All @@ -762,7 +762,7 @@ describe('FlagsCard Component', () => {

expect(screen.getByText('Flags')).toBeInTheDocument()
const flagItems = container.querySelectorAll('.flag-item')
expect(flagItems.length).toBe(15)
expect(flagItems.length).toBe(16)
})
})
})