Commit dcb37cd3 authored by Anthony Geourjon's avatar Anthony Geourjon

Add better message in popup when deleting a project or a portfolio

parent 1a5b8731
Pipeline #30802 failed with stage
in 44 seconds
......@@ -256,7 +256,14 @@ root.controller('ProjectSettingsCtrl', ['$scope', '$stateParams', '$http', '$lan
settingsCtrl.deleteBtn = function () {
var r = confirm($languageFactory._labels.confirmDeleteProject);
var alertMessage="";
if($scope._getProjectParent()){
alertMessage=$languageFactory._labels.confirmDeleteProject + settingsCtrl.settings.fullName + " ?";
}else {
alertMessage=$languageFactory._labels.confirmDeletePortfolio + settingsCtrl.settings.fullName + " ? ";
}
var r = confirm(alertMessage);
if (r == false) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment