-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: reworking error toast notifications #18172
base: v15/dev
Are you sure you want to change the base?
Conversation
@nielslyngsoe for reference it would be nice with syntax highlighting for e.g. JSON. |
# Conflicts: # src/Umbraco.Web.UI.Client/src/packages/core/notification/notification.context.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a warning that options is not being used anymore. Is that a mistake?
@@ -0,0 +1,43 @@ | |||
import { customElement, html, ifDefined, nothing, property } from '@umbraco-cms/backoffice/external/lit'; | |||
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element'; | |||
import type { UmbNotificationHandler } from '../../notification-handler'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import type { UmbNotificationHandler } from '../../notification-handler'; | |
import type { UmbNotificationHandler } from '../../notification-handler.js'; |
import { EventMessageTypeModel } from '@umbraco-cms/backoffice/external/backend-api'; | ||
import type { UmbNotificationColor } from './types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import type { UmbNotificationColor } from './types'; | |
import type { UmbNotificationColor } from './types.js'; |
@@ -0,0 +1,17 @@ | |||
import { UmbModalToken } from '@umbraco-cms/backoffice/modal'; | |||
import type { UmbPeekErrorArgs } from '../../types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import type { UmbPeekErrorArgs } from '../../types'; | |
import type { UmbPeekErrorArgs } from '../../types.js'; |
Making errors appear in a dialog + displaying errors for both 'detail'(string) and 'errors'(json).
See screenshots:
Case 1:
Insert this somewhere in a Server Controller code:
throw new NotImplementedException();
Case 2
Remove the front-end code of
${umbBindToValidation(this)}
from name input insrc/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace-editor.element.ts
.