mirror of https://github.com/jumpserver/jumpserver
fix: action choices
parent
7061ce7c97
commit
fd54cbc777
|
@ -10,11 +10,11 @@ __all__ = ["SpecialAccount", "ActionChoices"]
|
||||||
|
|
||||||
|
|
||||||
class ActionChoices(BitChoices):
|
class ActionChoices(BitChoices):
|
||||||
connect = bit(1), _("Connect")
|
connect = bit(0), _("Connect")
|
||||||
upload = bit(2), _("Upload")
|
upload = bit(1), _("Upload")
|
||||||
download = bit(3), _("Download")
|
download = bit(2), _("Download")
|
||||||
copy = bit(4), _("Copy")
|
copy = bit(3), _("Copy")
|
||||||
paste = bit(5), _("Paste")
|
paste = bit(4), _("Paste")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_tree(cls):
|
def is_tree(cls):
|
||||||
|
@ -23,6 +23,7 @@ class ActionChoices(BitChoices):
|
||||||
@classmethod
|
@classmethod
|
||||||
def branches(cls):
|
def branches(cls):
|
||||||
return (
|
return (
|
||||||
|
cls.connect,
|
||||||
(_("Transfer"), [cls.upload, cls.download]),
|
(_("Transfer"), [cls.upload, cls.download]),
|
||||||
(_("Clipboard"), [cls.copy, cls.paste]),
|
(_("Clipboard"), [cls.copy, cls.paste]),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue