mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-22 10:21:37 +00:00
Added debug for selfserve (#623)
This commit is contained in:
committed by
GitHub
parent
0f88176a27
commit
9c6178d0ed
@@ -109,6 +109,16 @@ const handleMessage = async (event: MessageEvent): Promise<void> => {
|
||||
subscriptionId: inputs.subscriptionId,
|
||||
});
|
||||
|
||||
if (i18n.isInitialized) {
|
||||
await displaySelfServeComponent(selfServeType);
|
||||
} else {
|
||||
i18n.on("initialized", async () => {
|
||||
await displaySelfServeComponent(selfServeType);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const displaySelfServeComponent = async (selfServeType: SelfServeType): Promise<void> => {
|
||||
const descriptor = await getDescriptor(selfServeType);
|
||||
ReactDOM.render(renderComponent(descriptor), document.getElementById("selfServeContent"));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user