vishesh92 commented on code in PR #8821:
URL: https://github.com/apache/cloudstack/pull/8821#discussion_r1545318677
##########
ui/src/config/section/offering.js:
##########
@@ -89,15 +90,33 @@ export default {
dataView: true,
popup: true,
component: shallowRef(defineAsyncComponent(() =>
import('@/views/offering/UpdateOfferingAccess.vue')))
+ },
+ {
+ api: 'updateServiceOffering',
+ icon: 'play-circle-outlined',
+ label: 'label.action.enable.service.offering',
+ message: 'message.action.enable.service.offering',
+ dataView: true,
+ args: ['state'],
+ mapping: {
+ state: {
+ value: (record) => { return 'Active' }
+ }
+ },
+ groupAction: true,
+ popup: true,
+ show: (record) => { return record.state !== 'Active' },
+ groupMap: (selection) => { return selection.map(x => { return { id: x,
state: 'Active' } }) }
}, {
api: 'deleteServiceOffering',
- icon: 'delete-outlined',
- label: 'label.action.delete.service.offering',
- message: 'message.action.delete.service.offering',
+ icon: 'pause-circle-outlined',
Review Comment:
Because it's not actually deleting the service offering. Just changing the
state to inactive.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]