mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
wait before showing notification
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
3e12d6fe92
commit
0a6921da28
@ -27,7 +27,7 @@ export class Catalog extends React.Component {
|
|||||||
@observable private catalogEntityStore?: CatalogEntityStore;
|
@observable private catalogEntityStore?: CatalogEntityStore;
|
||||||
@observable.deep private contextMenu: CatalogEntityContextMenuContext;
|
@observable.deep private contextMenu: CatalogEntityContextMenuContext;
|
||||||
|
|
||||||
componentDidMount() {
|
async componentDidMount() {
|
||||||
this.contextMenu = {
|
this.contextMenu = {
|
||||||
menuItems: [],
|
menuItems: [],
|
||||||
navigate: (url: string) => navigate(url)
|
navigate: (url: string) => navigate(url)
|
||||||
@ -37,12 +37,14 @@ export class Catalog extends React.Component {
|
|||||||
this.catalogEntityStore.watch()
|
this.catalogEntityStore.watch()
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (this.catalogEntityStore.items.length === 0) {
|
setTimeout(() => {
|
||||||
Notifications.info(<><b>Welcome!</b><p>Get started by associating one or more clusters to Lens</p></>, {
|
if (this.catalogEntityStore.items.length === 0) {
|
||||||
timeout: 30_000,
|
Notifications.info(<><b>Welcome!</b><p>Get started by associating one or more clusters to Lens</p></>, {
|
||||||
id: "catalog-welcome"
|
timeout: 30_000,
|
||||||
});
|
id: "catalog-welcome"
|
||||||
}
|
});
|
||||||
|
}
|
||||||
|
}, 2_000);
|
||||||
}
|
}
|
||||||
|
|
||||||
addToHotbar(item: CatalogEntityItem) {
|
addToHotbar(item: CatalogEntityItem) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user