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:
parent
d807491df2
commit
1306a69b06
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue