fixed issue of deleting email message in Admin UI
parent
ac1b94abae
commit
384e73f38a
|
@ -59,7 +59,7 @@ app.controller('EmailMessageController', function($scope, $timeout,$translate,
|
|||
showCloseButton: true,
|
||||
});
|
||||
|
||||
$scope.getEmailMessages();
|
||||
$scope.$emit('handleEmitEmailMessageTableChanged');
|
||||
} else {
|
||||
var templateName = "FDD.EMAIL_MESSAGE";
|
||||
templateName = $translate.instant(templateName);
|
||||
|
@ -85,7 +85,4 @@ app.controller('EmailMessageController', function($scope, $timeout,$translate,
|
|||
});
|
||||
};
|
||||
|
||||
// $scope.getEmailMessages();
|
||||
|
||||
|
||||
});
|
|
@ -38,22 +38,11 @@ app.controller('EmailMessageOptionController', function($scope, $timeout,
|
|||
period:$scope.currentPeriod
|
||||
});
|
||||
|
||||
if(true){
|
||||
EmailMessageAnalysisService.getAnalysisResult(query, function(error, data) {
|
||||
if (!error) {
|
||||
$scope.$emit('handleEmitEmailMessageOptionChanged', data);
|
||||
}
|
||||
});
|
||||
}else{
|
||||
EmailMessageAnalysisService.getTestDataResult(query, function(error, data) {
|
||||
if (!error) {
|
||||
$timeout(function(){
|
||||
$scope.$emit('handleEmitEmailMessageOptionChanged', data);
|
||||
},1000);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
$timeout(function() {
|
||||
|
|
|
@ -38,22 +38,11 @@ app.controller('TextMessageOptionController', function($scope, $timeout,
|
|||
period:$scope.currentPeriod
|
||||
});
|
||||
|
||||
if(true){
|
||||
TextMessageAnalysisService.getAnalysisResult(query, function(error, data) {
|
||||
if (!error) {
|
||||
$scope.$emit('handleEmitTextMessageOptionChanged', data);
|
||||
}
|
||||
});
|
||||
}else{
|
||||
TextMessageAnalysisService.getTestDataResult(query, function(error, data) {
|
||||
if (!error) {
|
||||
$timeout(function(){
|
||||
$scope.$emit('handleEmitTextMessageOptionChanged', data);
|
||||
},1000);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
$timeout(function() {
|
||||
|
|
Loading…
Reference in New Issue