F 修复自定义发布在无主机动作时发布状态未正常更新的问题

pull/103/head
vapao 2020-05-23 18:30:29 +08:00
parent 69a43489c7
commit 9485289641
2 changed files with 5 additions and 2 deletions

View File

@ -121,6 +121,8 @@ def _ext2_deploy(req, helper, env):
if exception:
helper.send_error(h_id, f'Exception: {exception}')
raise exception
else:
helper.send_step('local', 100, f'\r\n{human_time()} ** 发布成功 **')
def _deploy_ext1_host(helper, h_id, extend, env):

View File

@ -99,7 +99,8 @@ class Ext1Index extends React.Component {
getStatusAlias = () => {
if (Object.keys(store.outputs).length !== 0) {
for (let item of [{id: 'local'}, ...store.request.targets]) {
const {targets, host_actions} = store.request;
for (let item of [{id: 'local'}, ...(host_actions.length > 0 ? targets : [])]) {
if (lds.get(store.outputs, `${item.id}.status`) === 'error') {
return <Tag color="red">发布异常</Tag>
} else if (lds.get(store.outputs, `${item.id}.step`, -1) < 100) {