all files / app/components/toastr/ toastr.config.js

100% Statements 11/11
100% Branches 0/0
100% Functions 2/2
100% Lines 11/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28                        736× 736× 736× 736× 736× 736× 736× 736×          
/**
 * @ngdoc object
 * @name app.components.config:toastrConfig
 * @description
 * Set default options for the toastr service
 */
(function() {
  'use strict';
 
  angular
    .module('app.components')
    .config(config);
 
  /** @ngInject */
  function config(toastrConfig) {
    toastrConfig.allowHtml = false;  // escape '<', etc.
    toastrConfig.timeOut = 0;
    toastrConfig.extendedTimeOut = 0;
    toastrConfig.closeButton = true;
    toastrConfig.positionClass = 'toast-top-right';
    toastrConfig.preventDuplicates = false;
    toastrConfig.progressBar = false;
    toastrConfig.maxOpened = 1;
  }
 
})();