Skip to content

Commit

Permalink
Updated text for notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Sep 1, 2022
1 parent b4d56c5 commit b0ff7e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/admin/component/PropertySelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export function PropertySelector ({ properties, options, onAddProperties }) {
let index = 0;
const ordered = orderBy(results, 'category');
const grouped = groupBy(ordered, 'category');
const items = Object.keys(grouped).sort().map((item) => {
const items = Object.keys(grouped).sort().map((item, idx) => {
index = index + 1;
const used = grouped[item].filter((i) => properties.some((p) => p.propertyName === i.propertyName));
if (used.length >= grouped[item].length) {
return <Fragment></Fragment>
return <Fragment key={item}></Fragment>
}
return (
<Fragment key={item}>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/admin/container/EditConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function EditConfiguration({ configurations }) {
const resp = await put(`${config.resourceId}`, config);
if (response.ok) {
gotoList({ refresh: true });
toast = createNotificationAction(`Added property successfully.`, NotificationTypes.SUCCESS);
toast = createNotificationAction(`Updated configuration successfully.`, NotificationTypes.SUCCESS);
} else {
toast = createNotificationAction(`${resp.errorCode} - ${translator(resp.errorMessage)}`, NotificationTypes.ERROR);
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/admin/container/NewConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function NewConfiguration({ configurations }) {
const resp = await post(``, config);
if (response.ok) {
gotoList({ refresh: true });
toast = createNotificationAction(`Added property successfully.`, NotificationTypes.SUCCESS);
toast = createNotificationAction(`Added configuration successfully.`, NotificationTypes.SUCCESS);
} else {
toast = createNotificationAction(`${resp.errorCode} - ${translator(resp.errorMessage)}`, NotificationTypes.ERROR);
}
Expand Down

0 comments on commit b0ff7e2

Please sign in to comment.