Fix doughnut graphs on workload overview sometimes not showing (#5727)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-08-30 07:54:18 -04:00
1 parent 7767216167
commit 4b1c9fb5fd
36 files changed
+868 -184

No files matched your search

+9 -3
View File
@@ -3,11 +3,17 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import themeStoreInjectable from "../../renderer/themes/store.injectable";
import activeThemeInjectable from "../../renderer/themes/active.injectable";
import type { LensTheme } from "../../renderer/themes/store";
import { asLegacyGlobalForExtensionApi } from "../as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api";
const themeStore = asLegacyGlobalForExtensionApi(themeStoreInjectable);
export const activeTheme = asLegacyGlobalForExtensionApi(activeThemeInjectable);
/**
* @deprecated This hides the reactivity of active theme, use {@link activeTheme} instead
*/
export function getActiveTheme() {
return themeStore.activeTheme;
return activeTheme.get();
}
export type { LensTheme };