Fix tracking

This commit is contained in:
Andrei Prigorshnev 2024-04-03 20:17:49 +04:00
parent bd2cdfa243
commit d9f1678931
No known key found for this signature in database
GPG Key ID: 185E0A5F45783902
2 changed files with 5 additions and 4 deletions

View File

@ -7,13 +7,14 @@ export default class Assignment extends Component {
@service siteSettings;
@service taskActions;
@tracked assignee =
this.args.assignment.username || this.args.assignment.group_name;
constructor() {
super(...arguments);
}
get assignee() {
return this.args.assignment.username || this.args.assignment.group_name;
}
get status() {
return this.args.assignment.status || this.assignStatuses[0];
}

View File

@ -37,7 +37,7 @@ export default class TopicAssignments extends Component {
return { id: this.TOPIC_ID, name: "Topic" };
} else {
return {
id: assignment.post_number,
id: assignment.postNumber,
name: `Post #${assignment.postNumber}`, // fixme andrei string
};
}