Skip to content
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

Merged
merged 8 commits into from
Feb 2, 2025

Conversation

ottenhoff
Copy link
Contributor

Especially focused on what happens after a successful message is sent. Need to reset context for a new message.

<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"}
Copy link
Contributor

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.

@adrianfish
Copy link
Contributor

Let me push a commit onto your branch before you do anything else. I'll be slow as a I have a broken wrist

Used state = true for all the internal state vars
Removed some unnecessary member var assignments
Removed formatMessage, tr does the job
@adrianfish
Copy link
Contributor

@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.

@ottenhoff
Copy link
Contributor Author

thanks for changes. branch looks ok. it works.

@ottenhoff
Copy link
Contributor Author

ok @adrianfish are you okay with the changes here? it all seems to work

Copy link
Contributor

@adrianfish adrianfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hunky Dory

@ottenhoff ottenhoff merged commit 2bb0aeb into sakaiproject:master Feb 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants