@@ -122,14 +122,19 @@ export default {
122122 show : ( record ) => { return record . state !== 'Active' } ,
123123 groupMap : ( selection ) => { return selection . map ( x => { return { id : x , state : 'Active' } } ) }
124124 } , {
125- api : 'deleteServiceOffering ' ,
125+ api : 'updateServiceOffering ' ,
126126 icon : 'pause-circle-outlined' ,
127127 label : 'label.action.disable.service.offering' ,
128128 message : 'message.action.disable.service.offering' ,
129129 docHelp : 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering' ,
130130 dataView : true ,
131131 groupAction : true ,
132132 popup : true ,
133+ mapping : {
134+ state : {
135+ value : ( record ) => { return 'Inactive' }
136+ }
137+ } ,
133138 show : ( record ) => { return record . state === 'Active' } ,
134139 groupMap : ( selection ) => { return selection . map ( x => { return { id : x } } ) }
135140 } ]
@@ -198,7 +203,7 @@ export default {
198203 show : ( record ) => { return record . state !== 'Active' } ,
199204 groupMap : ( selection ) => { return selection . map ( x => { return { id : x , state : 'Active' } } ) }
200205 } , {
201- api : 'deleteServiceOffering ' ,
206+ api : 'updateServiceOffering ' ,
202207 icon : 'pause-circle-outlined' ,
203208 label : 'label.action.disable.system.service.offering' ,
204209 message : 'message.action.disable.system.service.offering' ,
@@ -207,6 +212,11 @@ export default {
207212 params : { issystem : 'true' } ,
208213 groupAction : true ,
209214 popup : true ,
215+ mapping : {
216+ state : {
217+ value : ( record ) => { return 'Inactive' }
218+ }
219+ } ,
210220 show : ( record ) => { return record . state === 'Active' } ,
211221 groupMap : ( selection ) => { return selection . map ( x => { return { id : x } } ) }
212222 } ]
@@ -301,14 +311,19 @@ export default {
301311 show : ( record ) => { return record . state !== 'Active' } ,
302312 groupMap : ( selection ) => { return selection . map ( x => { return { id : x , state : 'Active' } } ) }
303313 } , {
304- api : 'deleteDiskOffering ' ,
314+ api : 'updateDiskOffering ' ,
305315 icon : 'pause-circle-outlined' ,
306316 label : 'label.action.disable.disk.offering' ,
307317 message : 'message.action.disable.disk.offering' ,
308318 docHelp : 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering' ,
309319 dataView : true ,
310320 groupAction : true ,
311321 popup : true ,
322+ mapping : {
323+ state : {
324+ value : ( record ) => { return 'Inactive' }
325+ }
326+ } ,
312327 show : ( record ) => { return record . state === 'Active' } ,
313328 groupMap : ( selection ) => { return selection . map ( x => { return { id : x } } ) }
314329 } ]
0 commit comments