Merge branch 'v3' of github.com:jumpserver/jumpserver into v3

This commit is contained in:
Jiangjie.Bai
2022-11-16 11:29:10 +08:00
2 changed files with 14 additions and 14 deletions

View File

@@ -10,11 +10,11 @@ __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")
connect = bit(0), _("Connect")
upload = bit(1), _("Upload")
download = bit(2), _("Download")
copy = bit(3), _("Copy")
paste = bit(4), _("Paste")
@classmethod
def is_tree(cls):
@@ -23,6 +23,7 @@ class ActionChoices(BitChoices):
@classmethod
def branches(cls):
return (
cls.connect,
(_("Transfer"), [cls.upload, cls.download]),
(_("Clipboard"), [cls.copy, cls.paste]),
)