mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 12:15:20 +01:00
update for adding project validation and listing replication job.
This commit is contained in:
parent
38388b25cb
commit
1ac534f333
@ -40,13 +40,12 @@
|
||||
}
|
||||
|
||||
function addProjectFailed(data, status) {
|
||||
if(status === 409) {
|
||||
vm.hasError = true;
|
||||
vm.errorMessage = 'project_already_exist';
|
||||
vm.hasError = true;
|
||||
if(status == 400) {
|
||||
vm.errorMessage = 'project_name_is_invalid';
|
||||
}
|
||||
if(status === 500) {
|
||||
vm.hasError = true;
|
||||
vm.errorMessage = 'project_name_is_invalid';
|
||||
if(status === 409) {
|
||||
vm.errorMessage = 'project_already_exist';
|
||||
}
|
||||
console.log('Failed to add project:' + status);
|
||||
}
|
||||
|
@ -14,6 +14,7 @@
|
||||
$scope.$on('$locationChangeSuccess', function() {
|
||||
vm.projectId = getParameterByName('project_id', $location.absUrl());
|
||||
vm.retrievePolicy();
|
||||
vm.retrieveJob();
|
||||
});
|
||||
|
||||
vm.addReplication = addReplication;
|
||||
|
Loading…
Reference in New Issue
Block a user