@@ -5,21 +5,21 @@ import { computed } from '@ember/object';
55
66export default Component . extend ( {
77 layout,
8+ tagName : "" ,
89 store : service ( ) ,
910 tutorialService : service ( ) ,
1011 landscapeService : service ( ) ,
1112 renderingService : service ( ) ,
1213 landscapeRepo : service ( "repos/landscape-repository" ) ,
1314 landscapeListener : service ( ) ,
1415 currentUser : service ( ) ,
15-
16- showLandscape : computed ( 'landscapeRepo.latestApplication' , function ( ) {
17- return ! this . get ( 'landscapeRepo.latestApplication' ) ;
16+ showLandscape : computed ( 'landscapeService.application' , function ( ) {
17+ return ! this . get ( 'landscapeService.application' ) ;
1818 } ) ,
19- selectMode : computed ( 'landscapeService.landscape ' , function ( ) {
20- if ( this . get ( 'model.constructor.modelName' ) == "tutorial" || this . get ( 'model.constructor.modelName' ) == "sequence" ) {
21- return ! this . get ( 'landscapeService.landscape' ) ;
22- }
19+ selectMode : computed ( 'landscapeService.selectLandscape ' , function ( ) {
20+ if ( this . get ( 'model.constructor.modelName' ) == "tutorial" || this . get ( 'model.constructor.modelName' ) == "sequence" ) {
21+ return this . get ( 'landscapeService.selectLandscape' ) ;
22+ }
2323 return false ;
2424 } ) ,
2525 liveMode : computed ( 'landscapeService.livelandscapes' , 'selectMode' , function ( ) {
@@ -28,19 +28,13 @@ export default Component.extend({
2828 }
2929 return false ;
3030 } ) ,
31- init ( ) {
32- this . _super ( ...arguments ) ;
33- this . get ( 'landscapeService' ) . updateLandscapeList ( true ) ;
34- this . get ( 'landscapeListener' ) . initSSE ( ) ;
35- this . get ( 'landscapeListener' ) . set ( 'pauseVisualizationReload' , true ) ;
36- } ,
3731 actions : {
32+
3833 resetView ( ) {
3934 this . get ( 'renderingService' ) . reSetupScene ( ) ;
4035 } ,
4136 openLandscapeView ( ) {
42- this . set ( 'landscapeRepo.latestApplication' , null ) ;
43- this . set ( 'landscapeRepo.replayApplication' , null ) ;
37+ this . set ( 'landscapeService.application' , null ) ;
4438 } ,
4539 toggleTimeline ( ) {
4640 this . get ( 'renderingService' ) . toggleTimeline ( ) ;
@@ -58,6 +52,12 @@ export default Component.extend({
5852 interaction . set ( 'selectTarget' , ! interaction . get ( 'selectTarget' ) ) ;
5953 }
6054 } ,
55+ init ( ) {
56+ this . _super ( ...arguments ) ;
57+ this . get ( 'landscapeService' ) . updateLandscapeList ( true ) ;
58+ this . get ( 'landscapeListener' ) . initSSE ( ) ;
59+ this . get ( 'landscapeListener' ) . set ( 'pauseVisualizationReload' , true ) ;
60+ } ,
6161 showTimeline ( ) {
6262 this . set ( 'renderingService.showTimeline' , true ) ;
6363 } ,
@@ -80,4 +80,5 @@ export default Component.extend({
8080 this . _super ( ...arguments ) ;
8181 this . get ( 'additionalData' ) . off ( 'showWindow' , this , this . onShowWindow ) ;
8282 } ,
83+
8384} ) ;
0 commit comments