FIX: whisper small actions are blank (#188)

assigned_group and unassigned_group has to be added to decorator to properly display whispers
This commit is contained in:
Krzysztof Kotlarek 2021-08-27 11:34:44 +10:00 committed by GitHub
parent d807491df2
commit 1306a69b06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,7 @@ export default Controller.extend({
}); });
} else { } else {
this.setProperties({ this.setProperties({
"model.username": assignee.username, "model.username": assignee.name,
"model.group_name": null, "model.group_name": null,
"model.allowedGroups": this.taskActions.allowedGroups, "model.allowedGroups": this.taskActions.allowedGroups,
}); });

View File

@ -202,8 +202,9 @@ function initialize(api) {
api.addPostTransformCallback((transformed) => { api.addPostTransformCallback((transformed) => {
if ( if (
transformed.actionCode === "assigned" || ["assigned", "unassigned", "assigned_group", "unassigned_group"].includes(
transformed.actionCode === "unassigned" transformed.actionCode
)
) { ) {
transformed.isSmallAction = true; transformed.isSmallAction = true;
transformed.canEdit = false; transformed.canEdit = false;