mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 15:28:44 +00:00
Merge pull request #477 from PR0M3TH3AN/codex/show-tui-actions-for-supported-entries
Improve entry menu actions visibility
This commit is contained in:
@@ -1730,6 +1730,7 @@ class PasswordManager:
|
||||
"""Provide actions for a retrieved entry."""
|
||||
while True:
|
||||
archived = entry.get("archived", entry.get("blacklisted", False))
|
||||
entry_type = entry.get("type", EntryType.PASSWORD.value)
|
||||
print(colored("\n[+] Entry Actions:", "green"))
|
||||
if archived:
|
||||
print(colored("U. Unarchive", "cyan"))
|
||||
@@ -1740,6 +1741,11 @@ class PasswordManager:
|
||||
print(colored("H. Add Hidden Field", "cyan"))
|
||||
print(colored("E. Edit", "cyan"))
|
||||
print(colored("T. Edit Tags", "cyan"))
|
||||
if entry_type in {
|
||||
EntryType.SEED.value,
|
||||
EntryType.MANAGED_ACCOUNT.value,
|
||||
EntryType.NOSTR.value,
|
||||
}:
|
||||
print(colored("Q. Show QR codes", "cyan"))
|
||||
|
||||
choice = (
|
||||
|
Reference in New Issue
Block a user