Skip to content

Commit

Permalink
add edas cluster operations & fix inline form wrap issue (#840) (#841)
Browse files Browse the repository at this point in the history
* fix(cmp): add operations for edas

* fix(dop): fix inline form wrap issue

Co-authored-by: 戣蓦 <mcdaddychen@126.com>
  • Loading branch information
erda-bot and McDaddy authored Aug 4, 2021
1 parent 20be714 commit 13c7a85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions shell/app/modules/cmp/pages/cluster-manage/cluster-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,24 @@ const ClusterList = ({ dataSource, onEdit }: IProps) => {
},
};
const clusterOpsMap = {
edas: [edit, deleteClusterCall],
edas: [
edit,
deleteClusterCall,
...insertWhen(get(clusterDetail, 'basic.manageType.value') === 'agent', [showRegisterCommand]),
...insertWhen(['initialize error', 'unknown'].includes(get(clusterDetail, 'basic.clusterStatus.value')), [
retryInit,
]),
],
k8s: [
addMachine,
addCloudMachines,
edit,
upgrade,
deleteClusterCall,
...insertWhen(get(clusterDetail, 'basic.manageType.value') === 'agent', [showRegisterCommand]),
...insertWhen(get(clusterDetail, 'basic.clusterStatus.value') === 'initialize error', [retryInit]),
...insertWhen(['initialize error', 'unknown'].includes(get(clusterDetail, 'basic.clusterStatus.value')), [
retryInit,
]),
],
'alicloud-cs': [addMachine, addCloudMachines, edit, upgrade, deleteClusterCall],
'alicloud-cs-managed': [addMachine, addCloudMachines, edit, upgrade, deleteClusterCall],
Expand Down
2 changes: 1 addition & 1 deletion shell/app/styles/antd-extension.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ $border-style: 1px solid $color-border;
}

.ant-form-inline {
flex-wrap: nowrap;
flex-wrap: nowrap !important;
}

div.ant-modal-body {
Expand Down

0 comments on commit 13c7a85

Please # to comment.