File tree 2 files changed +7
-3
lines changed
appliance-application/packages/main/src
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export class DisplayManager {
12
12
return this . displays ;
13
13
}
14
14
15
- public getDisplay ( label : string ) : Display | null {
16
- return this . displays . find ( display => display . label === label ) || null ;
15
+ public getDisplay ( identifier : string | number ) : Display | null {
16
+ return this . displays . find ( display => display . id === Number ( identifier ) || display . label === identifier ) || null ;
17
17
}
18
18
}
Original file line number Diff line number Diff line change @@ -98,7 +98,11 @@ function loadDisplays() {
98
98
99
99
const allDisplays = displayManager . getDisplays ( ) ;
100
100
allDisplays . forEach ( display => {
101
- console . log ( `Found display '${ display . label } '` ) ;
101
+ console . log ( 'Found display with display attributes:' , {
102
+ id : display . id ,
103
+ label : display . label ,
104
+ size : display . size
105
+ } ) ;
102
106
} ) ;
103
107
}
104
108
You can’t perform that action at this time.
0 commit comments