diff --git a/ui/src/components/view/ActionButton.vue b/ui/src/components/view/ActionButton.vue index 14128a5ce554..8e1220cb589a 100644 --- a/ui/src/components/view/ActionButton.vue +++ b/ui/src/components/view/ActionButton.vue @@ -177,6 +177,15 @@ export default { methods: { execAction (action) { action.resource = this.resource + const record = this.resource || this.item + if (action?.api === 'disableOutOfBandManagementForHost' && (record?.hostha?.haenable === true || record?.hastate === 'Enabled')) { + this.$notification.error({ + message: this.$t('label.error'), + description: 'Please disable High Availability (HA) on this host before disabling Out-of-Band Management (OOBM).', + duration: 0 + }) + return + } if (action.docHelp) { action.docHelp = this.$applyDocHelpMappings(action.docHelp) } diff --git a/ui/src/components/view/ListView.vue b/ui/src/components/view/ListView.vue index c5346390f178..4ba867a1a9f5 100644 --- a/ui/src/components/view/ListView.vue +++ b/ui/src/components/view/ListView.vue @@ -655,8 +655,7 @@ - -