Allow to navigate to created resource details from notification (#4422)

navigate to created resource details from notification
This commit is contained in:
Roman authored and GitHub committed 2021-11-25 18:04:41 +02:00
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,
});