-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace ember render modifiers in learner group root component #8281
Replace ember render modifiers in learner group root component #8281
Conversation
9a68207
to
33af894
Compare
…nvert read-only learnerGroupId prop into a getter.
…only place where it is actually used..
i split this into two - one for the user manager subcomponent, and one for the membership list subcomponent. edit vs view mode, the data is slightly different. i hope this makes things a bit more grokkable.
… obsolete load() task.
e340ad3
to
bd99907
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One, if you feel like it, change. Marking as approved though. In case you don't.
{{t "general.uploadGroupAssignments"}} | ||
{{else}} | ||
{{t "general.members"}} | ||
({{this.usersForUserManager.length}}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surprised at how much more readable this is.
this.url = this.args.learnerGroup.url; | ||
} | ||
|
||
@cached |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing async
here, doesn't need to be @cached
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected ✔️
} | ||
|
||
get learnerGroupTitle() { | ||
return this.args.learnerGroup.title; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious why this is a getter, but location
and url
are both set in the constructor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, never mind. Those can be changed. Got it.
refs ilios/ilios#5374