@@ -128,14 +128,19 @@ export default {
128128 show : ( record ) => { return record . state !== 'Active' } ,
129129 groupMap : ( selection ) => { return selection . map ( x => { return { id : x , state : 'Active' } } ) }
130130 } , {
131- api : 'deleteServiceOffering ' ,
131+ api : 'updateServiceOffering ' ,
132132 icon : 'pause-circle-outlined' ,
133133 label : 'label.action.disable.service.offering' ,
134134 message : 'message.action.disable.service.offering' ,
135135 docHelp : 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering' ,
136136 dataView : true ,
137137 groupAction : true ,
138138 popup : true ,
139+ mapping : {
140+ state : {
141+ value : ( record ) => { return 'Inactive' }
142+ }
143+ } ,
139144 show : ( record ) => { return record . state === 'Active' } ,
140145 groupMap : ( selection ) => { return selection . map ( x => { return { id : x } } ) }
141146 } ]
@@ -204,7 +209,7 @@ export default {
204209 show : ( record ) => { return record . state !== 'Active' } ,
205210 groupMap : ( selection ) => { return selection . map ( x => { return { id : x , state : 'Active' } } ) }
206211 } , {
207- api : 'deleteServiceOffering ' ,
212+ api : 'updateServiceOffering ' ,
208213 icon : 'pause-circle-outlined' ,
209214 label : 'label.action.disable.system.service.offering' ,
210215 message : 'message.action.disable.system.service.offering' ,
@@ -213,6 +218,11 @@ export default {
213218 params : { issystem : 'true' } ,
214219 groupAction : true ,
215220 popup : true ,
221+ mapping : {
222+ state : {
223+ value : ( record ) => { return 'Inactive' }
224+ }
225+ } ,
216226 show : ( record ) => { return record . state === 'Active' } ,
217227 groupMap : ( selection ) => { return selection . map ( x => { return { id : x } } ) }
218228 } ]
@@ -307,14 +317,19 @@ export default {
307317 show : ( record ) => { return record . state !== 'Active' } ,
308318 groupMap : ( selection ) => { return selection . map ( x => { return { id : x , state : 'Active' } } ) }
309319 } , {
310- api : 'deleteDiskOffering ' ,
320+ api : 'updateDiskOffering ' ,
311321 icon : 'pause-circle-outlined' ,
312322 label : 'label.action.disable.disk.offering' ,
313323 message : 'message.action.disable.disk.offering' ,
314324 docHelp : 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering' ,
315325 dataView : true ,
316326 groupAction : true ,
317327 popup : true ,
328+ mapping : {
329+ state : {
330+ value : ( record ) => { return 'Inactive' }
331+ }
332+ } ,
318333 show : ( record ) => { return record . state === 'Active' } ,
319334 groupMap : ( selection ) => { return selection . map ( x => { return { id : x } } ) }
320335 } ]
0 commit comments