mirror of
https://github.com/moodle/moodle.git
synced 2025-07-25 00:02:18 +02:00
If creating a proxy fails, we will show an error using the notification API. So we can remove the notification.exception call. But modify the docs for ToolProxy.create so that future developers will know they need to handle failures themselves.
1 line
414 B
JavaScript
1 line
414 B
JavaScript
define(["core/ajax","core/notification"],function(a,b){return{query:function(c){var d={methodname:"mod_lti_get_tool_proxies",args:c||{}},e=a.call([d])[0];return e.fail(b.exception),e},"delete":function(c){var d={methodname:"mod_lti_delete_tool_proxy",args:{id:c}},e=a.call([d])[0];return e.fail(b.exception),e},create:function(b){var c={methodname:"mod_lti_create_tool_proxy",args:b},d=a.call([c])[0];return d}}}); |