Commit 0bdbaa3b authored by ibuler's avatar ibuler

Merge remote-tracking branch 'github/master' into dev

parents 5e7e8898 1233b998
......@@ -90,6 +90,7 @@ class InteractiveServer:
_("{T}5) Enter {green}g{end} + {green}NodeID{end} to display the host under the node, such as g1.{R}"),
_("{T}6) Enter {green}s{end} Chinese-english switch.{R}"),
_("{T}7) Enter {green}h{end} help.{R}"),
_("{T}8) Enter {green}r{end} to refresh your assets and nodes.{R}"),
_("{T}0) Enter {green}q{end} exit.{R}")
]
self.client.send(header.format(
......@@ -128,6 +129,9 @@ class InteractiveServer:
elif opt in ['s', 'S']:
switch_lang()
self.display_banner()
elif opt in ['r', 'R']:
self.refresh_assets_nodes()
self.display_banner()
elif opt in ['h', 'H']:
self.display_banner()
else:
......@@ -156,6 +160,10 @@ class InteractiveServer:
else:
self.display_assets(assets)
def refresh_assets_nodes(self):
self.get_user_assets_paging_async()
self.get_user_nodes_async()
def search_assets(self, q):
if self.finish:
assets = self.search_assets_from_local(q)
......
......@@ -72,6 +72,11 @@ msgstr ""
#: coco/interactive.py:89
#, python-brace-format
msgid "{T}8) Enter {green}r{end} to refresh your assets and nodes.{R}"
msgstr ""
#: coco/interactive.py:90
#, python-brace-format
msgid "{T}0) Enter {green}q{end} exit.{R}"
msgstr ""
......
......@@ -77,6 +77,11 @@ msgstr "{T}7) 输入 {green}h{end} 帮助.{R}"
#: coco/interactive.py:89
#, python-brace-format
msgid "{T}8) Enter {green}r{end} to refresh your assets and nodes.{R}"
msgstr "{T}0) 输入 {green}r{end} 刷新最新的机器和节点信息.{R}"
#: coco/interactive.py:90
#, python-brace-format
msgid "{T}0) Enter {green}q{end} exit.{R}"
msgstr "{T}0) 输入 {green}q{end} 退出.{R}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment