@@ -2,7 +2,7 @@ import { ComponentProps, DisplayComponent, FSComponent, Subscribable, VNode } fr
2
2
import { NavigationDataStatus , NavigraphNavigationDataInterface } from "@navigraph/msfs-navigation-data-interface"
3
3
4
4
interface DashboardProps extends ComponentProps {
5
- selectedDatabase : Subscribable < NavigationDataStatus | null >
5
+ databaseInfo : Subscribable < NavigationDataStatus | null >
6
6
interface : NavigraphNavigationDataInterface
7
7
}
8
8
@@ -12,15 +12,15 @@ export class Dashboard extends DisplayComponent<DashboardProps> {
12
12
< div class = "size-full flex flex-col" >
13
13
< p class = "ml-2 mb-8 text-4xl" > Dashboard</ p >
14
14
< div class = "flex flex-row flex-grow flex-auto" >
15
- < ActiveDatabase selectedDatabase = { this . props . selectedDatabase } />
15
+ < ActiveDatabase databaseInfo = { this . props . databaseInfo } />
16
16
</ div >
17
17
</ div >
18
18
)
19
19
}
20
20
}
21
21
22
22
interface ActiveDatabaseProps extends ComponentProps {
23
- selectedDatabase : Subscribable < NavigationDataStatus | null >
23
+ databaseInfo : Subscribable < NavigationDataStatus | null >
24
24
// : MappedSubscribable<boolean>
25
25
}
26
26
@@ -33,31 +33,31 @@ class ActiveDatabase extends DisplayComponent<ActiveDatabaseProps> {
33
33
< div class = "p-4 flex flex-col align-middle items-start flex-start space-y-6 vertical" >
34
34
< div class = "flex flex-row space-x-2" >
35
35
< span class = "text-2xl" > Latest Cycle:</ span >
36
- < span class = "text-xl text-gray-400" > { this . props . selectedDatabase . map ( s => s ?. latestCycle ?? "N/A" ) } </ span >
36
+ < span class = "text-xl text-gray-400" > { this . props . databaseInfo . map ( s => s ?. latestCycle ?? "N/A" ) } </ span >
37
37
</ div >
38
38
< div class = "flex flex-col space-y-2" >
39
39
< p class = "text-3xl" > Bundled</ p >
40
- < p class = "text-2xl text-gray-400" > { this . props . selectedDatabase . map ( s => s ?. status ?? "N/A" ) } </ p >
40
+ < p class = "text-2xl text-gray-400" > { this . props . databaseInfo . map ( s => s ?. status ?? "N/A" ) } </ p >
41
41
</ div >
42
42
< div class = "flex flex-col space-y-2" >
43
43
< p class = "text-3xl" > Installed format</ p >
44
44
< p class = "text-2xl text-gray-400" >
45
- { this . props . selectedDatabase . map (
45
+ { this . props . databaseInfo . map (
46
46
s => `${ s ?. installedFormat ?? "N/A" } revision ${ s ?. installedRevision ?? "N/A" } ` ,
47
47
) }
48
48
</ p >
49
49
</ div >
50
50
< div class = "flex flex-col space-y-2" >
51
51
< p class = "text-3xl" > Active path</ p >
52
- < p class = "text-2xl text-gray-400" > { this . props . selectedDatabase . map ( s => s ?. installedPath ?? "N/A" ) } </ p >
52
+ < p class = "text-2xl text-gray-400" > { this . props . databaseInfo . map ( s => s ?. installedPath ?? "N/A" ) } </ p >
53
53
</ div >
54
54
< div class = "flex flex-col space-y-2" >
55
55
< p class = "text-3xl" > Active cycle</ p >
56
- < p class = "text-2xl text-gray-400" > { this . props . selectedDatabase . map ( s => s ?. installedCycle ?? "N/A" ) } </ p >
56
+ < p class = "text-2xl text-gray-400" > { this . props . databaseInfo . map ( s => s ?. installedCycle ?? "N/A" ) } </ p >
57
57
</ div >
58
58
< div class = "flex flex-col space-y-2" >
59
59
< p class = "text-3xl" > Validity period</ p >
60
- < p class = "text-2xl text-gray-400" > { this . props . selectedDatabase . map ( s => s ?. validityPeriod ?? "N/A" ) } </ p >
60
+ < p class = "text-2xl text-gray-400" > { this . props . databaseInfo . map ( s => s ?. validityPeriod ?? "N/A" ) } </ p >
61
61
</ div >
62
62
</ div >
63
63
</ div >
0 commit comments