This repository was archived by the owner on Apr 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ window.Vue.use(ToggleButton);
1111const shell = window . state . shell ;
1212const ipc = window . state . ipc ;
1313
14+ function transformFrame ( frame ) {
15+ return Object . assign ( { } , frame , { start : frame . _start , stop : frame . _stop } ) ;
16+ }
17+
1418const app = new Vue ( {
1519 el : '#app' ,
1620 data : window . state . data ,
@@ -54,7 +58,7 @@ const app = new Vue({
5458 } ,
5559 frames ( ) {
5660 let frames = { } ;
57- this . days . forEach ( day => frames [ day ] = this . log . frames [ day ] . sort ( ( a , b ) => a . start >= b . start ? 1 : - 1 ) ) ;
61+ this . days . forEach ( day => frames [ day ] = this . log . frames [ day ] . map ( transformFrame ) . sort ( ( a , b ) => a . start >= b . start ? 1 : - 1 ) ) ;
5862 return frames ;
5963 }
6064 } ,
@@ -71,7 +75,7 @@ const app = new Vue({
7175 this . log = data ;
7276 } ) ;
7377 ipc . on ( 'gtt-status' , ( event , status ) => {
74- this . running = status ;
78+ this . running = status . map ( transformFrame ) ;
7579 this . loadingStatus = false ;
7680 this . starting = false ;
7781 this . stopping = false ;
@@ -192,4 +196,4 @@ const app = new Vue({
192196 ipc . send ( 'gtt-config-write' , config ) ;
193197 }
194198 }
195- } ) ;
199+ } ) ;
You can’t perform that action at this time.
0 commit comments