Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ui/src/config/section/infra/managementServers.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export default {
icon: 'close-circle-outlined',
label: 'label.cancel.shutdown',
message: 'message.cancel.shutdown',
docHelp: 'installguide/configuration.html#adding-a-zone',
dataView: true,
popup: true,
show: (record, store) => { return ['PreparingForShutDown', 'ReadyToShutDown', 'ShuttingDown'].includes(record.state) },
Expand Down
8 changes: 7 additions & 1 deletion ui/src/views/AutogenView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ export default {
this.getFirstIndexFocus()

this.showAction = true
const listIconForFillValues = ['copy-outlined', 'CopyOutlined', 'edit-outlined', 'EditOutlined', 'share-alt-outlined', 'ShareAltOutlined']
const listIconForFillValues = ['copy-outlined', 'CopyOutlined', 'edit-outlined', 'EditOutlined', 'share-alt-outlined', 'ShareAltOutlined', 'minus-square-outlined']
for (const param of this.currentAction.paramFields) {
if (param.type === 'list' && ['tags', 'hosttags', 'storagetags', 'storageaccessgroups', 'files'].includes(param.name)) {
param.type = 'string'
Expand Down Expand Up @@ -1415,6 +1415,8 @@ export default {
fieldValue = this.resource[fieldName] ? this.resource[fieldName] : null
if (fieldValue) {
this.form[field.name] = fieldValue
} else if (field.type === 'boolean' && field.name === 'rebalance' && this.currentAction.api === 'cancelMaintenance') {
this.form[field.name] = true
}
})
},
Expand Down Expand Up @@ -1571,6 +1573,10 @@ export default {
}
}

if (['cancelMaintenance'].includes(action.api) && (params.rebalance === undefined || params.rebalance === null || params.rebalance === '')) {
params.rebalance = true
}

for (const key in values) {
const input = values[key]
for (const param of action.params) {
Expand Down
Loading