Skip to content

Commit 1948f90

Browse files
authored
[UI] Fix group disable action for compute and disk offering (#11602)
1 parent 6a14535 commit 1948f90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/config/section/offering.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default {
136136
}
137137
},
138138
show: (record) => { return record.state === 'Active' },
139-
groupMap: (selection) => { return selection.map(x => { return { id: x } }) }
139+
groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Inactive' } }) }
140140
}]
141141
},
142142
{
@@ -218,7 +218,7 @@ export default {
218218
}
219219
},
220220
show: (record) => { return record.state === 'Active' },
221-
groupMap: (selection) => { return selection.map(x => { return { id: x } }) }
221+
groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Inactive' } }) }
222222
}]
223223
},
224224
{
@@ -325,7 +325,7 @@ export default {
325325
}
326326
},
327327
show: (record) => { return record.state === 'Active' },
328-
groupMap: (selection) => { return selection.map(x => { return { id: x } }) }
328+
groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Inactive' } }) }
329329
}]
330330
},
331331
{

0 commit comments

Comments
 (0)