mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Allow to navigate to created resource details from notification (#4422)
navigate to created resource details from notification
This commit is contained in:
1 parent
44f1f38a75
commit
4f33dfdfd5
4 files changed
+34
-22
No files matched your search
@@ -35,7 +35,7 @@ export class Notifications extends React.Component {
|
||||
public elem: HTMLElement;
|
||||
|
||||
static ok(message: NotificationMessage) {
|
||||
notificationsStore.add({
|
||||
return notificationsStore.add({
|
||||
message,
|
||||
timeout: 2_500,
|
||||
status: NotificationStatus.OK,
|
||||
@@ -43,7 +43,7 @@ export class Notifications extends React.Component {
|
||||
}
|
||||
|
||||
static error(message: NotificationMessage, customOpts: Partial<Notification> = {}) {
|
||||
notificationsStore.add({
|
||||
return notificationsStore.add({
|
||||
message,
|
||||
timeout: 10_000,
|
||||
status: NotificationStatus.ERROR,
|
||||
@@ -52,7 +52,7 @@ export class Notifications extends React.Component {
|
||||
}
|
||||
|
||||
static shortInfo(message: NotificationMessage, customOpts: Partial<Notification> = {}) {
|
||||
this.info(message, {
|
||||
return this.info(message, {
|
||||
timeout: 5_000,
|
||||
...customOpts,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user