mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Change typing for after/before window/application start (#7342)
- Now the callback is provided with an object containing either `mainDi` or `windowDi` fields. This should help with confusion over which environment the `di` is for Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
b99b06980e
commit
a63f737adb
62 files changed
+185
-189
No files matched your search
+2
-2
@@ -24,7 +24,7 @@ describe("Showing correct entity settings", () => {
|
||||
beforeEach(async () => {
|
||||
builder = getApplicationBuilder();
|
||||
|
||||
builder.beforeWindowStart((windowDi) => {
|
||||
builder.beforeWindowStart(({ windowDi }) => {
|
||||
// TODO: remove once ClusterStore can be used without overriding it
|
||||
windowDi.override(getClusterByIdInjectable, () => (clusterId) => {
|
||||
if (clusterId === cluster.id) {
|
||||
@@ -35,7 +35,7 @@ describe("Showing correct entity settings", () => {
|
||||
});
|
||||
});
|
||||
|
||||
builder.afterWindowStart((windowDi) => {
|
||||
builder.afterWindowStart(({ windowDi }) => {
|
||||
clusterEntity = new KubernetesCluster({
|
||||
metadata: {
|
||||
labels: {},
|
||||
|
||||
Reference in new issue
Block a user