Skip to content

Separator can be omitted when adding third-party link actions to the transaction table #431

@jarolrod

Description

@jarolrod

#4092 added the ability to add third-party links to block explorers and the functionality to show a selected translation in that block explorer. As stated in a review in that PR, it is important that we separate these third-party links from all of the other context-menu actions.

"Nit: please add a menu separator between the 'normal' actions and the 'third party' actions."

Since the merge of that PR, there has been a bug where it's possible that this separator does not get added, and the third-party link actions merge in with our "normal" actions.

Because the addition of the separator is conditional on being at 0, if the first string passed is empty; then the separator will never get added. Now that we've iterated past 0, any subsequent actions will get merged in with our normal actions instead of being visually separated into its distinct section.

To Replicate:

  1. Pass in arguments to the Options->Display->Third party transaction URLs menu setting that would result in the first string being empty. Example: | | https://mempool.space/tx/%s | https://blockstream.info/tx/%s.
  2. Restart, navigate to Transaction window and right-click on a transaction.
  3. Notice that any third-party links you had passed are now actions that have merged in with "normal" actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions