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,
|
showCloseButton: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.getEmailMessages();
|
$scope.$emit('handleEmitEmailMessageTableChanged');
|
||||||
} else {
|
} else {
|
||||||
var templateName = "FDD.EMAIL_MESSAGE";
|
var templateName = "FDD.EMAIL_MESSAGE";
|
||||||
templateName = $translate.instant(templateName);
|
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
|
period:$scope.currentPeriod
|
||||||
});
|
});
|
||||||
|
|
||||||
if(true){
|
EmailMessageAnalysisService.getAnalysisResult(query, function(error, data) {
|
||||||
EmailMessageAnalysisService.getAnalysisResult(query, function(error, data) {
|
if (!error) {
|
||||||
if (!error) {
|
$scope.$emit('handleEmitEmailMessageOptionChanged', data);
|
||||||
$scope.$emit('handleEmitEmailMessageOptionChanged', data);
|
}
|
||||||
}
|
});
|
||||||
});
|
|
||||||
}else{
|
|
||||||
EmailMessageAnalysisService.getTestDataResult(query, function(error, data) {
|
|
||||||
if (!error) {
|
|
||||||
$timeout(function(){
|
|
||||||
$scope.$emit('handleEmitEmailMessageOptionChanged', data);
|
|
||||||
},1000);
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
|
@ -38,22 +38,11 @@ app.controller('TextMessageOptionController', function($scope, $timeout,
|
||||||
period:$scope.currentPeriod
|
period:$scope.currentPeriod
|
||||||
});
|
});
|
||||||
|
|
||||||
if(true){
|
TextMessageAnalysisService.getAnalysisResult(query, function(error, data) {
|
||||||
TextMessageAnalysisService.getAnalysisResult(query, function(error, data) {
|
if (!error) {
|
||||||
if (!error) {
|
$scope.$emit('handleEmitTextMessageOptionChanged', data);
|
||||||
$scope.$emit('handleEmitTextMessageOptionChanged', data);
|
}
|
||||||
}
|
});
|
||||||
});
|
|
||||||
}else{
|
|
||||||
TextMessageAnalysisService.getTestDataResult(query, function(error, data) {
|
|
||||||
if (!error) {
|
|
||||||
$timeout(function(){
|
|
||||||
$scope.$emit('handleEmitTextMessageOptionChanged', data);
|
|
||||||
},1000);
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
Loading…
Reference in New Issue