Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty pod logs tab content #7177

Merged
merged 6 commits into from Feb 17, 2023
Merged

Conversation

aleksfront
Copy link
Contributor

Change lifecycle method of logsViewModelInjectable to be

lifecycle: lifecycleEnum.keyedSingleton({
  getInstanceKey: (di, tabId: TabId) => `log-tab-view-model-${tabId}}`,
}),
load.proper.data.for.pod.logs.mov

Fixes #7071

to keyedSingleton

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@aleksfront aleksfront added bug Something isn't working area/logs area/dock labels Feb 16, 2023
@aleksfront aleksfront added this to the 6.4.0 milestone Feb 16, 2023
@aleksfront aleksfront requested a review from a team as a code owner February 16, 2023 11:55
@aleksfront aleksfront requested review from jansav and jim-docker and removed request for a team February 16, 2023 11:55
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Comment on lines +49 to +51
lifecycle: lifecycleEnum.keyedSingleton({
getInstanceKey: (di, tabId: TabId) => `log-tab-view-model-${tabId}}`,
}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lifecycle: lifecycleEnum.transient wouldn't work?

@Nokel81 Nokel81 merged commit 219a683 into master Feb 17, 2023
@Nokel81 Nokel81 deleted the fix-empty-pod-logs-tab-content branch February 17, 2023 18:22
@Nokel81 Nokel81 mentioned this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dock area/logs bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logTabStore.createPodTab don't display properly after all log tabs closed, until application reload
3 participants