-
-
Notifications
You must be signed in to change notification settings - Fork 956
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
SAK-50853 Gradebook Webcomponents more messaging fixes #13253
Conversation
gradebookng/tool/src/java/org/sakaiproject/gradebookng/rest/GradebookNgEntityProvider.java
Outdated
Show resolved
Hide resolved
gradebookng/tool/src/java/org/sakaiproject/gradebookng/rest/GradebookNgEntityProvider.java
Outdated
Show resolved
Hide resolved
<div class="fs-5 mb-2">${this._i18n.success}</div> | ||
<p>${this.formatMessage(this._i18n.messages_sent_detail || "Successfully sent messages to {numSent} recipients.", { numSent: this.numSent })}</p> | ||
<button type="button" class="btn btn-primary" @click=${this.reset}> | ||
${this._i18n.send_another || "Send Another Message"} |
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.
This fallback should not be necessary. render will never be called unless this._i18n is defined and if this._i18n is defined theb send_another should be defined. Anything else is really messed up and needs looking into.
...nts/tool/src/main/frontend/packages/sakai-submission-messager/src/SakaiSubmissionMessager.js
Outdated
Show resolved
Hide resolved
...nts/tool/src/main/frontend/packages/sakai-submission-messager/src/SakaiSubmissionMessager.js
Outdated
Show resolved
Hide resolved
...nts/tool/src/main/frontend/packages/sakai-submission-messager/src/SakaiSubmissionMessager.js
Outdated
Show resolved
Hide resolved
Let me push a commit onto your branch before you do anything else. I'll be slow as a I have a broken wrist |
cd3d003
to
d5e7875
Compare
Used state = true for all the internal state vars Removed some unnecessary member var assignments Removed formatMessage, tr does the job
@ottenhoff I'm sorry but I think I've mangled your branch a bit. I tried to do a good thing by rebasing onto master and it has produced some odd results. However, I have done some cleanup on the js class that i hope is helpful. |
…adebookNgEntityProvider.java Co-authored-by: Adrian Fish <[email protected]>
thanks for changes. branch looks ok. it works. |
ok @adrianfish are you okay with the changes here? it all seems to work |
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.
Hunky Dory
Especially focused on what happens after a successful message is sent. Need to reset context for a new message.