Skip to content

Commit

Permalink
feat: agent异常机器禁止重启操作
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 16552
  • Loading branch information
hyunfa authored and wyyalt committed Sep 10, 2024
1 parent 2460337 commit 3335ce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/views/agent/agent-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@
:class="[
'list-item',
fontSize,
{ 'disabled': row.status === 'not_installed' && !(['log', 'remove'].includes(item.id)) }
{ 'disabled': ['terminated', 'not_installed'].includes(row.status) && !(['log', 'remove'].includes(item.id)) }
]"
:key="item.id"
v-test.common="`moreItem.${item.id}`"
Expand Down Expand Up @@ -1684,7 +1684,7 @@ export default class AgentList extends Mixins(pollMixin, TableHeaderMixins, auth
* Linux、window卸载都不需要经过编辑页面 *****
*/
private handleOperate(type: string, data: IAgentHost[], batch = false) {
if (!batch && data[0].status === 'not_installed' && !(['log', 'reinstall', 'remove'].includes(type))) {
if (!batch && ['terminated', 'not_installed'].includes(data[0].status) && !(['log', 'reinstall', 'remove'].includes(type))) {
return;
}
if (!batch && this.$refs[data[0].bk_host_id]) {
Expand Down

0 comments on commit 3335ce9

Please sign in to comment.