Skip to content

Commit

Permalink
fixup! MDL-81924 core_sms: Add SMS gateway management UI
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhawkins committed Sep 13, 2024
1 parent 382b802 commit e27f6f5
Show file tree
Hide file tree
Showing 17 changed files with 192 additions and 318 deletions.
2 changes: 0 additions & 2 deletions lang/en/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,6 @@
$string['digitalminor_desc'] = 'Please ask your parent/guardian to contact:';
$string['directory'] = 'Directory';
$string['disable'] = 'Disable';
$string['disabled'] = 'Disabled';
$string['disabledcomments'] = 'Comments are disabled';
$string['dismissnotification'] = 'Dismiss this notification';
$string['displayingfirst'] = 'Only the first {$a->count} {$a->things} are displayed';
Expand Down Expand Up @@ -793,7 +792,6 @@
$string['emptydragdropregion'] = 'empty region';
$string['emptysectionids'] = 'Empty section IDs';
$string['enable'] = 'Enable';
$string['enabled'] = 'Enabled';
$string['encryptedcode'] = 'Encrypted code';
$string['enddate'] = 'Course end date';
$string['enddate_help'] = 'The end date doesn’t restrict student access to the course. It determines whether a course is listed as Past in My courses.';
Expand Down
2 changes: 1 addition & 1 deletion lang/en/sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$string['countrycode_help'] = 'Set the default phone number format to exclude the "+" symbol if user does not enter an international number with it.';
$string['createnewgateway'] = 'Create a new SMS gateway';
$string['delete_sms_gateway'] = 'Delete SMS gateway';
$string['delete_sms_gateway_confirmation'] = 'Are you sure you want to delete the SMS gateway?';
$string['delete_sms_gateway_confirmation'] = 'Are you sure you want to delete the {$a->gateway} SMS gateway?';
$string['gateway'] = 'Gateway';
$string['gateway_name'] = 'Gateway name';
$string['manage_sms_gateways'] = 'Manage SMS gateways';
Expand Down
2 changes: 1 addition & 1 deletion sms/amd/build/smsgatewaychooser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sms/amd/build/smsgatewaychooser.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions sms/amd/build/smsgatewaytoggle.min.js

This file was deleted.

1 change: 0 additions & 1 deletion sms/amd/build/smsgatewaytoggle.min.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion sms/amd/src/smsgatewaychooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Selectors = {
* Initialise the sms gateway chooser.
*/
export const init = () => {
document.querySelector(Selectors.fields.selector).addEventListener('change', e => {
document.querySelector(Selectors.fields.selector)?.addEventListener('change', e => {
const form = e.target.closest('form');
const updateButton = form.querySelector(Selectors.fields.updateButton);
const url = new URL(form.action);
Expand Down
Loading

0 comments on commit e27f6f5

Please sign in to comment.