@things-factory/operato-fleet 6.1.67 → 6.1.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@ import { APPEND_APP_TOOL } from '@things-factory/apptool-base'
13
13
  import { setupAppToolPart } from '@things-factory/apptool-ui'
14
14
  import { auth } from '@things-factory/auth-base'
15
15
  import { setAuthManagementMenus } from '@things-factory/auth-ui'
16
+ import { setupContextUIPart } from '@things-factory/context-ui'
16
17
  import { fetchBoardSettings, UPDATE_BOARD_SETTINGS } from '@things-factory/dashboard'
17
18
  import { ADD_SETTING } from '@things-factory/setting-base'
18
19
  import { store } from '@things-factory/shell'
@@ -44,13 +45,18 @@ async function loadFleetBoardSetting() {
44
45
  })
45
46
  }
46
47
 
47
- export default function bootstrap() {
48
- setupAppToolPart({
48
+ export default async function bootstrap() {
49
+ await setupAppToolPart({
49
50
  toolbar: true,
50
51
  busybar: true,
51
52
  mdibar: true
52
53
  })
53
54
 
55
+ await setupContextUIPart({
56
+ titlebar: 'header',
57
+ contextToolbar: 'page-footer'
58
+ })
59
+
54
60
  /* load google-map api */
55
61
  GoogleMapLoader.load()
56
62
 
@@ -49,7 +49,7 @@ export class CommonMap extends connect(store)(LitElement) {
49
49
  }
50
50
 
51
51
  stateChanged(state) {
52
- this.defaultCenter = state.fleets.location
52
+ this.defaultCenter = state.fleets?.location
53
53
  }
54
54
 
55
55
  get anchor() {
@@ -76,8 +76,8 @@ export class FleetSearch extends connect(store)(localize(i18next)(LitElement)) {
76
76
  }
77
77
 
78
78
  stateChanged(state) {
79
- this.fleets = state.fleets.fleets
80
- this.focusedFleetId = state.fleets.focusedFleetId
79
+ this.fleets = state.fleets?.fleets || []
80
+ this.focusedFleetId = state.fleets?.focusedFleetId
81
81
  }
82
82
 
83
83
  async updated(changes) {
@@ -247,9 +247,9 @@ class FMSMonitoring extends connect(store)(localize(i18next)(PageView)) {
247
247
  this.fleetBoardId = state.boardSetting[MARKER_IW_BOARD_FOR_FLEET]?.board.id
248
248
  this.trackBoardId = state.boardSetting[MARKER_IW_BOARD_FOR_TRACK]?.board.id
249
249
 
250
- this.fleets = state.fleets.fleets
251
- this.fleetId = state.fleets.focusedFleetId
252
- this.search = state.fleets.search
250
+ this.fleets = state.fleets?.fleets || []
251
+ this.fleetId = state.fleets?.focusedFleetId
252
+ this.search = state.fleets?.search
253
253
  }
254
254
 
255
255
  get infoWindow() {