fix(fe): bug with displaying deploy tasks with incorrect state

This commit is contained in:
Denis Gukov 2022-01-17 01:37:59 +05:00
parent 312cafa23c
commit 904fa6fcc1
2 changed files with 5 additions and 5 deletions

View File

@ -48,8 +48,8 @@
<TaskLink <TaskLink
:disabled="item.tpl_type === 'build'" :disabled="item.tpl_type === 'build'"
:task-id="item.build_task_id" :task-id="item.build_task_id"
:tooltip="item.tpl_type === 'build' ? item.message : item.build_task.message" :tooltip="item.tpl_type === 'build' ? item.message : (item.build_task || {}).message"
:label="item.tpl_type === 'build' ? item.version : item.build_task.version" :label="item.tpl_type === 'build' ? item.version : (item.build_task || {}).version"
:status="item.status" :status="item.status"
/> />
</div> </div>

View File

@ -136,15 +136,15 @@
:task-id="item.last_task.tpl_type === 'build' :task-id="item.last_task.tpl_type === 'build'
? item.last_task.id ? item.last_task.id
: item.last_task.build_task.id" : (item.last_task.build_task || {}).id"
:label="item.last_task.tpl_type === 'build' :label="item.last_task.tpl_type === 'build'
? item.last_task.version ? item.last_task.version
: item.last_task.build_task.version" : (item.last_task.build_task || {}).version"
:tooltip="item.last_task.tpl_type === 'build' :tooltip="item.last_task.tpl_type === 'build'
? item.last_task.message ? item.last_task.message
: item.last_task.build_task.message" : (item.last_task.build_task || {}).message"
/> />
<div v-else>&mdash;</div> <div v-else>&mdash;</div>
</template> </template>