-
Notifications
You must be signed in to change notification settings - Fork 75
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
Part II: Unify fail alerts #1654
Part II: Unify fail alerts #1654
Conversation
3fd3347
to
7a066dd
Compare
src/containers/certification-dashboard/certification-dashboard.tsx
Outdated
Show resolved
Hide resolved
7a066dd
to
07dacaf
Compare
@@ -120,7 +120,7 @@ export class NamespaceForm extends React.Component<IProps, IState> { | |||
formErrors: { | |||
...this.state.formErrors, | |||
groups: { | |||
title: t`Error loading groups.`, | |||
title: t`Groups list could not be displayed.`, | |||
description: err, |
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.
so, err
in ObjectPermissionField
onError
is the same as err?.message
elsewhere .. should this therefore also use errorMessage
?
(You'll also need to
--- a/src/components/permissions/obect-permission-field.tsx
+++ b/src/components/permissions/obect-permission-field.tsx
@@ -123,2 +123,2 @@ export class ObjectPermissionField extends React.Component<IProps, IState> {
- .catch((e) => this.props.onError(e?.message));
+ .catch((e) => this.props.onError(e));
to make it work.)
@@ -176,7 +176,7 @@ export class NamespaceModal extends React.Component<IProps, IState> { | |||
formErrors: { | |||
...this.state.formErrors, | |||
groups: { | |||
title: t`Error loading groups.`, | |||
title: t`Groups list could not be displayed.`, | |||
description: err, |
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.
this.setState({ | ||
formErrors: { | ||
...this.state.formErrors, | ||
groups: { | ||
title: t`Error loading groups.`, | ||
title: t`Groups list could not be displayed.`, | ||
description: err, |
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 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.
LGTM as well, just the 3 ObjectPermissionField
changes :)
2708746
to
70c90cf
Compare
Issue: AAH-1354
Issue: AAH-1354
Issue: AAH-1354
Issue: AAH-1354
Issue: AAH-1354
70c90cf
to
3ff186c
Compare
@himdel Done, though I had to change |
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.
LGTM 👍 Cypress failures seem to be unrelated to the PR changes.
Issue: https://issues.redhat.com/browse/AAH-1354
This pr works towards unifying fail alert notifications across the application. The effort will be broken into several prs.
Please reference this working document for a list of target notifications.