mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
CONTACTS: a selected vessel's subject is labelled as its selection is; test doubles without the new lookup still activate
This commit is contained in:
1 parent
4b0958b9e8
commit
1fdf52198d
2 files changed
+2
-2
No files matched your search
@@ -29,7 +29,7 @@ export function createDependencies({
|
|||||||
* @returns {boolean} Whether a vessel became the subject.
|
* @returns {boolean} Whether a vessel became the subject.
|
||||||
*/
|
*/
|
||||||
function adoptSelectedVessel() {
|
function adoptSelectedVessel() {
|
||||||
const vessel = parts.subject.currentSelectedVesselSubject();
|
const vessel = parts.subject.currentSelectedVesselSubject?.();
|
||||||
if (!vessel) return false;
|
if (!vessel) return false;
|
||||||
layerState.autoFocusRetryPending = false;
|
layerState.autoFocusRetryPending = false;
|
||||||
parts.subject.selectSubject(vessel);
|
parts.subject.selectSubject(vessel);
|
||||||
|
|||||||
@@ -544,7 +544,7 @@ export function createSubject({ state: layerState, services, parts, source }) {
|
|||||||
return subjectFromContext({
|
return subjectFromContext({
|
||||||
layerId: 'ais-live-vessels',
|
layerId: 'ais-live-vessels',
|
||||||
id: info.id,
|
id: info.id,
|
||||||
label: info.name || (info.mmsi ? `MMSI ${info.mmsi}` : info.id),
|
label: info.name || info.mmsi || info.id,
|
||||||
latitude: info.latitude,
|
latitude: info.latitude,
|
||||||
longitude: info.longitude,
|
longitude: info.longitude,
|
||||||
properties: { vesselId: info.id, mmsi: info.mmsi },
|
properties: { vesselId: info.id, mmsi: info.mmsi },
|
||||||
|
|||||||
Reference in new issue
Block a user