perf: 优化授权中动作的说明

This commit is contained in:
ibuler
2023-05-29 18:23:26 +08:00
parent fd7e821f11
commit 0901b95ce0
5 changed files with 113 additions and 60 deletions

View File

@@ -9,12 +9,12 @@ __all__ = ["ActionChoices"]
class ActionChoices(BitChoices):
connect = bit(1), _("Connect")
upload = bit(2), _("Upload")
download = bit(3), _("Download")
copy = bit(4), _("Copy")
paste = bit(5), _("Paste")
delete = bit(6), _("Delete")
connect = bit(1), _("Connect") + " ({})".format(_("All protocols"))
upload = bit(2), _("Upload") + " (RDP, SFTP)"
download = bit(3), _("Download") + " (RDP, SFTP)"
copy = bit(4), _("Copy") + " (RDP, VNC)"
paste = bit(5), _("Paste") + " (RDP, VNC)"
delete = bit(6), _("Delete") + " (SFTP)"
@classmethod
def is_tree(cls):