You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. /**
  2. * Created by robin on 4/24/16.
  3. */
  4. (function () {
  5. angular.module("appSdk").factory("errorDialogMd", ['luticateDialogErrorHelper', '$mdDialog', function (luticateDialogErrorHelper, $mdDialog) {
  6. var Factory = {};
  7. Factory.errorMessage = function(data)
  8. {
  9. return luticateDialogErrorHelper.errorMessage(data);
  10. };
  11. Factory.errorDialog = function(data)
  12. {
  13. $mdDialog.show(
  14. $mdDialog.alert()
  15. // .parent(angular.element(document.querySelector('#popupContainer')))
  16. .clickOutsideToClose(true)
  17. .title('Error')
  18. .textContent(Factory.errorMessage(data))
  19. .ok('OK')
  20. );
  21. };
  22. return Factory;
  23. }]);
  24. })();