@@ -4,13 +4,13 @@ import {
44 AppStatus ,
55 Button ,
66 Icon ,
7+ ICONS ,
78 Link ,
89 useToastNotification ,
9- ICONS ,
1010} from "@canonical/react-components" ;
1111import {
12- severityOrder ,
1312 iconLookup ,
13+ severityOrder ,
1414} from "@canonical/react-components/dist/components/Notifications/ToastNotification/ToastNotificationList" ;
1515import classNames from "classnames" ;
1616import { useSelector } from "react-redux" ;
@@ -26,7 +26,11 @@ import {
2626 isRack ,
2727 isRegionAndRack ,
2828} from "@/app/store/controller/utils" ;
29- import { version as versionSelectors } from "@/app/store/general/selectors" ;
29+ import { generalActions } from "@/app/store/general" ;
30+ import {
31+ installType as installTypeSelectors ,
32+ version as versionSelectors ,
33+ } from "@/app/store/general/selectors" ;
3034import machineSelectors from "@/app/store/machine/selectors" ;
3135import type { MachineDetails } from "@/app/store/machine/types" ;
3236import {
@@ -116,6 +120,7 @@ export const StatusBar = (): React.ReactElement | null => {
116120 const maasName = useSelector ( configSelectors . maasName ) ;
117121 const allowUsabilla = useUsabilla ( ) ;
118122 const msmRunning = useSelector ( msmSelectors . running ) ;
123+ const installType = useSelector ( installTypeSelectors . get ) ;
119124 const { toggleListView, notifications, countBySeverity, isListView } =
120125 useToastNotification ( ) ;
121126
@@ -141,7 +146,7 @@ export const StatusBar = (): React.ReactElement | null => {
141146
142147 const hasNotifications = notifications . length > 0 ;
143148
144- useFetchActions ( [ msmActions . fetch ] ) ;
149+ useFetchActions ( [ msmActions . fetch , generalActions . fetchInstallType ] ) ;
145150
146151 if ( ! ( maasName && version ) ) {
147152 return null ;
@@ -184,7 +189,9 @@ export const StatusBar = (): React.ReactElement | null => {
184189 < div className = "p-status-bar__primary u-flex--no-shrink u-flex--wrap" >
185190 < strong data-testid = "status-bar-maas-name" > { maasName } MAAS</ strong >
186191 :
187- < span data-testid = "status-bar-version" > { version } </ span >
192+ < span data-testid = "status-bar-version" >
193+ { version } ({ installType } )
194+ </ span >
188195 </ div >
189196 < div className = "p-status-bar__primary u-flex--no-shrink u-flex--wrap" >
190197 < span data-testid = "status-bar-msm-status" >
0 commit comments