stable

Clone or download

Read-only

refactor: Use inject/provide instead of store for global properties

Instead of using the store for global properties that are only used by components (like the availability of the software map) we now inject them from the app initialization. No functional changes. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: If7e62767648cf0fdc3da8ad7f81716b9800edde3

Modified Files

Name
M src/scripts/switch-to/src/components/Body/Projects/ProjectLink.test.ts +28 −31 Go to diff View file
M src/scripts/switch-to/src/components/Body/Projects/ProjectLink.vue +5 −3 Go to diff View file
M src/scripts/switch-to/src/components/Body/TroveCatLink.test.ts +13 −19 Go to diff View file
M src/scripts/switch-to/src/components/Body/TroveCatLink.vue +3 −3 Go to diff View file
M src/scripts/switch-to/src/components/Header/SwitchToHeader.test.ts +52 −31 Go to diff View file
M src/scripts/switch-to/src/components/Header/SwitchToHeader.vue +11 −5 Go to diff View file
M src/scripts/switch-to/src/initiate-app.ts +22 −8 Go to diff View file
A src/scripts/switch-to/src/injection-keys.ts +26 −0 Go to diff View file
M src/scripts/switch-to/src/stores/root.ts +0 −11 Go to diff View file
M src/scripts/switch-to/src/stores/type.ts +1 −5 Go to diff View file