update flasherjs and flasher symfony bundle

This commit is contained in:
Khoubza Younes
2020-12-10 04:55:20 +01:00
parent fc68bd8155
commit 762cd70af9
+21
View File
@@ -0,0 +1,21 @@
PHPFlasher.addFactory('noty', (function () {
'use strict';
var exports = {};
exports.render = function (data) {
var options = {
text: data.message,
type: data.type,
...data.options
}
new Noty(options).show();
};
exports.renderOptions = function (options) {
Noty.overrideDefaults(options);
};
return exports;
})());