@@ -411,23 +411,22 @@ export function extendSession(
411411 } ) )
412412
413413 . views ( ( self ) => {
414- const superTrackActionMenuItems = (
415- self as unknown as AbstractSessionModel
416- ) . getTrackActionMenuItems
414+ const superTrackActions = ( self as unknown as AbstractSessionModel )
415+ . getTrackActions
417416 return {
418- getTrackActionMenuItems ( conf : BaseTrackConfig ) {
417+ getTrackActions ( conf : BaseTrackConfig ) {
419418 if (
420419 conf . type === 'ApolloTrack' ||
421420 conf . type === 'ReferenceSequenceTrack'
422421 ) {
423- return superTrackActionMenuItems ?.( conf )
422+ return superTrackActions ?.( conf )
424423 }
425424 const trackId = readConfObject ( conf , 'trackId' ) as string
426425 const sessionTrackIdentifier = '-sessionTrack'
427426 const isSessionTrack = trackId . endsWith ( sessionTrackIdentifier )
428427 return isSessionTrack
429428 ? [
430- ...( superTrackActionMenuItems ?.( conf ) ?? [ ] ) ,
429+ ...( superTrackActions ?.( conf ) ?? [ ] ) ,
431430 {
432431 label : 'Save track to Apollo' ,
433432 onClick : async ( ) => {
@@ -480,7 +479,7 @@ export function extendSession(
480479 } ,
481480 ]
482481 : [
483- ...( superTrackActionMenuItems ?.( conf ) ?? [ ] ) ,
482+ ...( superTrackActions ?.( conf ) ?? [ ] ) ,
484483 {
485484 label : 'Remove track from Apollo' ,
486485 onClick : async ( ) => {
0 commit comments