MDL-79512 mod_feedback: Add toast dialog when saved

* Add notification to notify the user once the changes have been
successfully saved
This commit is contained in:
Laurent David 2023-11-09 10:14:49 +01:00
parent 33391e08c2
commit 2b2cf76577

View File

@ -215,6 +215,11 @@ YUI.add('moodle-mod_feedback-dragdrop', function(Y) {
window.setTimeout(function(e) {
spinner.hide();
}, 250);
require(['core/notification', 'core/str', 'core/toast'], function(Notification, Strings, Toast) {
Strings.get_string('changessaved', 'core').then(function(saveString) {
return Toast.add(saveString);
}).catch(Notification.exception);
});
},
failure : function(transactionid, xhr) {
var msg = {