-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cms] #651 - Generates a message for an event which contains affiliat…
…ion and role update
- Loading branch information
1 parent
da7c942
commit 06f9eaa
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,19 @@ func getDisplayForOccupantAffiliationRoleUpdate(affiliationRoleUpdate data.Affil | |
|
||
return message | ||
} | ||
|
||
func getDisplayForSelfOccupantAffiliationRoleUpdate(affiliationRoleUpdate data.AffiliationRoleUpdate) string { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
d := newSelfAffiliationUpdateDisplayData(data.AffiliationUpdate{ | ||
This comment has been minimized.
Sorry, something went wrong.
olabiniV2
Contributor
|
||
Nickname: affiliationRoleUpdate.Nickname, | ||
Reason: affiliationRoleUpdate.Reason, | ||
New: affiliationRoleUpdate.NewAffiliation, | ||
Previous: affiliationRoleUpdate.PreviousAffiliation, | ||
Actor: affiliationRoleUpdate.Actor, | ||
}) | ||
|
||
message := displayAffiliationUpdateMessage(d, i18n.Localf("and as a result the role changed from %s to %s", | ||
This comment has been minimized.
Sorry, something went wrong.
olabiniV2
Contributor
|
||
displayNameForRole(affiliationRoleUpdate.PreviousRole), | ||
displayNameForRole(affiliationRoleUpdate.NewRole))) | ||
|
||
return message | ||
} |
"Get" name...