log message when show error dialog
This commit is contained in:
parent
b1203e3e8b
commit
d03de0dc5c
|
@ -1,7 +1,7 @@
|
|||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('ariaNg').factory('ariaNgCommonService', ['$location', '$timeout', 'base64', 'SweetAlert', '$translate', 'ariaNgConstants', function ($location, $timeout, base64, SweetAlert, $translate, ariaNgConstants) {
|
||||
angular.module('ariaNg').factory('ariaNgCommonService', ['$location', '$timeout', 'base64', 'SweetAlert', '$translate', 'ariaNgConstants', 'ariaNgLogService', function ($location, $timeout, base64, SweetAlert, $translate, ariaNgConstants, ariaNgLogService) {
|
||||
return {
|
||||
generateUniqueId: function () {
|
||||
var sourceId = ariaNgConstants.appPrefix + '_' + Math.round(new Date().getTime() / 1000) + '_' + Math.random();
|
||||
|
@ -20,6 +20,7 @@
|
|||
}, 100);
|
||||
},
|
||||
showError: function (text) {
|
||||
ariaNgLogService.error("[Error Dialog] " + text);
|
||||
this.showDialog('Error', text, 'error');
|
||||
},
|
||||
showOperationSucceeded: function (text) {
|
||||
|
|
Reference in a new issue