Skip to content
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

fix: show success messages for cost center buyer actions (#959) #1249

Merged
merged 2 commits into from
Aug 31, 2022

Conversation

DiverDori
Copy link
Collaborator

@DiverDori DiverDori commented Aug 17, 2022

PR Type

[ x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

There are no success messages for actions with cost center users. #959

Issue Number: Closes #959

What Is the New Behavior?

There are new success messages for cost center users, in particular for adding, removing and updating the buyer.

Does this PR Introduce a Breaking Change?

[ ] Yes
[x ] No

Other Information

AB#78898

@DiverDori DiverDori requested a review from SGrueber August 17, 2022 11:36
@shauke shauke added this to the 3.1 milestone Aug 17, 2022
@SGrueber
Copy link
Collaborator

Maybe the content of the messages should be more precise:
Suggestion:
"Add Buyer": The user "Jack Link" has been added to the cost center.
"Edit Budget": The budget of user "Jack Link" has been updated.
"Remove Buyer": The user "Jack Link" has been removed from the cost center.

updateCostCenterBuyerSuccess({ costCenter }),
displaySuccessMessage({
message: 'account.organization.cost_center_management.buyer.update.confirmation',
messageParams: { 0: `${payload.buyer.login}` },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${payload.buyer.firstName} ${payload.buyer.lastName} || ${payload.buyer.login}

to make it work the firstName and lastName has to be added to the CostCenterBuyer object in the method submitCostCenterBuyerForm() of the cost-center-buyer-edit-dialog.component

schadii
schadii previously approved these changes Aug 18, 2022
Copy link

@schadii schadii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tnx, It is Okay.

@DiverDori DiverDori force-pushed the fix/show-costcenterbuyer-success-messages branch from 73e7d87 to 4eed7fc Compare August 22, 2022 09:19
@SGrueber SGrueber self-requested a review August 22, 2022 10:10
SGrueber
SGrueber previously approved these changes Aug 22, 2022
@shauke shauke merged commit 9e079a2 into develop Aug 31, 2022
@shauke shauke deleted the fix/show-costcenterbuyer-success-messages branch August 31, 2022 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cost center management - Lack of success messages
6 participants