Browse Source

UI-3119: Use monster toast helper instead of Toastr directly (#8)

4.3
Joris Tirado 7 years ago
committed by GitHub
parent
commit
a5e9139e9f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      app.js

+ 9
- 4
app.js View File

@ -1,8 +1,7 @@
define(function(require) {
var $ = require('jquery'),
_ = require('lodash'),
monster = require('monster'),
toastr = require('toastr');
monster = require('monster');
var app = {
name: 'fax',
@ -221,7 +220,10 @@ console.log(_.size(self.appFlags.faxboxes));
.show();
self.deleteFaxes(listSelected, type, function() {
toastr.success(self.i18n.active().fax.deleteConfirm.success);
monster.ui.toast({
type: 'success',
message: self.i18n.active().fax.deleteConfirm.success
});
self.displayListFaxes(type, template, faxboxId);
});
@ -248,7 +250,10 @@ console.log(_.size(self.appFlags.faxboxes));
});
monster.ui.confirm(content, function() {
self.resendFaxes(listSelected, function() {
toastr.success(self.i18n.active().fax.resendConfirm.success);
monster.ui.toast({
type: 'success',
message: self.i18n.active().fax.resendConfirm.success
});
self.displayListFaxes(type, template, faxboxId);
});


Loading…
Cancel
Save