From a5e9139e9ffff2f3ee177672110b700215be635c Mon Sep 17 00:00:00 2001 From: Joris Tirado Date: Tue, 24 Jul 2018 12:48:57 -0700 Subject: [PATCH] UI-3119: Use monster toast helper instead of Toastr directly (#8) --- app.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index e3c03be..eb19d2a 100644 --- a/app.js +++ b/app.js @@ -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); });