Skip to content
Snippets Groups Projects
Unverified Commit ca1d2b7f authored by Michael Roytman's avatar Michael Roytman Committed by GitHub
Browse files

Merge pull request #330 from openedx/mroytman/MST-1769-pii-sharing-consent-dialog-button-bugs-copy

fix: inappropriate instructions for inline PII sharing consent dialog
parents e6596f6e dcf80007
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,11 @@ Please See the [releases tab](https://github.com/openedx/xblock-lti-consumer/rel
Unreleased
~~~~~~~~~~
8.0.1 - 2023-02-03
------------------
* This releases fixes the PII sharing consent dialog for inline launches to no longer refer to a nonexistent
"Cancel" button.
8.0.0 - 2023-01-31
------------------
* Update to work with bleachk>=6.0.0 and make that an explicit requirement in
......
......@@ -4,4 +4,4 @@ Runtime will load the XBlock class from here.
from .apps import LTIConsumerApp
from .lti_xblock import LtiConsumerXBlock
__version__ = '8.0.0'
__version__ = '8.0.1'
......@@ -154,15 +154,21 @@ function LtiConsumerXBlock(runtime, element) {
function renderPIIConsentPromptIfRequired(onSuccess, showCancelButton=true) {
if (askToSendUsername && askToSendEmail) {
msg = gettext("Click OK to have your username and e-mail address sent to a 3rd party application.\n\nClick Cancel to return to this page without sending your information.");
msg = "Click OK to have your username and e-mail address sent to a 3rd party application.";
} else if (askToSendUsername) {
msg = gettext("Click OK to have your username sent to a 3rd party application.\n\nClick Cancel to return to this page without sending your information.");
msg = "Click OK to have your username sent to a 3rd party application.";
} else if (askToSendEmail) {
msg = gettext("Click OK to have your e-mail address sent to a 3rd party application.\n\nClick Cancel to return to this page without sending your information.");
msg = "Click OK to have your e-mail address sent to a 3rd party application.";
} else {
onSuccess("OK");
return;
}
if (showCancelButton) {
msg += "\n\nClick Cancel to return to this page without sending your information.";
}
msg = gettext(msg);
$.when(confirmDialog(msg, $(this), showCancelButton)).then(onSuccess);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment