@@ -212,7 +212,7 @@ export default {
212212 return ;
213213 }
214214
215- this . copy ( this . focusedWidgetIndex ) ;
215+ this . copy ( { index : this . focusedWidgetIndex } ) ;
216216 } ,
217217 handleCut ( ) {
218218 if (
@@ -223,7 +223,7 @@ export default {
223223 return ;
224224 }
225225
226- this . cut ( this . focusedWidgetIndex ) ;
226+ this . cut ( { index : this . focusedWidgetIndex } ) ;
227227 } ,
228228 handleDuplicate ( ) {
229229 if (
@@ -234,7 +234,7 @@ export default {
234234 return ;
235235 }
236236
237- this . clone ( this . focusedWidgetIndex ) ;
237+ this . clone ( { index : this . focusedWidgetIndex } ) ;
238238 } ,
239239 handlePaste ( ) {
240240 if (
@@ -245,7 +245,7 @@ export default {
245245 return ;
246246 }
247247
248- this . paste ( Math . max ( this . focusedWidgetIndex , 0 ) ) ;
248+ this . paste ( { index : Math . max ( this . focusedWidgetIndex , 0 ) } ) ;
249249 } ,
250250 handleRemove ( ) {
251251 if (
@@ -256,7 +256,7 @@ export default {
256256 return ;
257257 }
258258
259- this . remove ( this . focusedWidgetIndex ) ;
259+ this . remove ( { index : this . focusedWidgetIndex } ) ;
260260 } ,
261261 areaUpdatedHandler ( area ) {
262262 for ( const item of this . next ) {
@@ -328,7 +328,7 @@ export default {
328328 } ,
329329 async cut ( { index } ) {
330330 apos . area . widgetClipboard . set ( this . next [ index ] ) ;
331- await this . remove ( index ) ;
331+ await this . remove ( { index } ) ;
332332 apos . notify ( 'Widget cut to clipboard' , {
333333 type : 'success' ,
334334 icon : 'content-cut-icon' ,
@@ -409,14 +409,14 @@ export default {
409409 }
410410 }
411411 } ,
412- clone ( index ) {
412+ clone ( { index } ) {
413413 const widget = cloneWidget ( this . next [ index ] ) ;
414414 this . insert ( {
415415 widget,
416416 index : index + 1
417417 } ) ;
418418 } ,
419- async paste ( index ) {
419+ async paste ( { index } ) {
420420 const clipboard = apos . area . widgetClipboard . get ( ) ;
421421 if ( clipboard ) {
422422 const widget = clipboard ;
@@ -559,7 +559,7 @@ export default {
559559 ...this . next . slice ( index )
560560 ] ;
561561 if ( this . widgetIsContextual ( widget . type ) ) {
562- this . edit ( index ) ;
562+ this . edit ( { index } ) ;
563563 }
564564 this . setFocusedWidget ( widget . _id , this . areaId , { scrollTo : true } ) ;
565565 } ,
0 commit comments