diff --git a/assets/javascripts/discourse/components/assign-user-form.hbs b/assets/javascripts/discourse/components/assign-user-form.hbs
index b24c472..9f4b925 100644
--- a/assets/javascripts/discourse/components/assign-user-form.hbs
+++ b/assets/javascripts/discourse/components/assign-user-form.hbs
@@ -1,4 +1,4 @@
diff --git a/assets/javascripts/discourse/components/assignment.hbs b/assets/javascripts/discourse/components/assignment.hbs
index f0ab145..30cd36a 100644
--- a/assets/javascripts/discourse/components/assignment.hbs
+++ b/assets/javascripts/discourse/components/assignment.hbs
@@ -36,7 +36,7 @@
@id="assign-status"
@content={{this.assignStatusOptions}}
@value={{this.status}}
- @onChange={{fn (mut @model.status)}}
+ @onChange={{fn (mut @assignment.status)}}
/>
{{/if}}
@@ -49,7 +49,7 @@
diff --git a/assets/javascripts/discourse/components/assignment.js b/assets/javascripts/discourse/components/assignment.js
index 97156ea..964f542 100644
--- a/assets/javascripts/discourse/components/assignment.js
+++ b/assets/javascripts/discourse/components/assignment.js
@@ -7,14 +7,15 @@ export default class Assignment extends Component {
@service siteSettings;
@service taskActions;
- @tracked assignee = this.args.model.username || this.args.model.group_name;
+ @tracked assignee =
+ this.args.assignment.username || this.args.assignment.group_name;
constructor() {
super(...arguments);
}
get status() {
- return this.args.model.status || this.assignStatuses[0];
+ return this.args.assignment.status || this.assignStatuses[0];
}
get assignStatuses() {
@@ -26,7 +27,7 @@ export default class Assignment extends Component {
}
get assigneeIsEmpty() {
- return !this.args.model.username && !this.args.model.group_name;
+ return !this.args.assignment.username && !this.args.assignment.group_name;
}
get showAssigneeIeEmptyError() {
@@ -45,11 +46,11 @@ export default class Assignment extends Component {
this.assignee = newAssignee;
if (this.taskActions.allowedGroupsForAssignment.includes(newAssignee)) {
- this.args.model.username = null;
- this.args.model.group_name = newAssignee;
+ this.args.assignment.username = null;
+ this.args.assignment.group_name = newAssignee;
} else {
- this.args.model.username = newAssignee;
- this.args.model.group_name = null;
+ this.args.assignment.username = newAssignee;
+ this.args.assignment.group_name = null;
}
}
}