Fix more errors in clone UI

This commit is contained in:
Girish Ramakrishnan
2018-08-06 00:41:06 -07:00
parent ac7c54e273
commit 8430fd1473
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -256,14 +256,13 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appRestore.error.port = error.message;
} else if (error.statusCode === 409) {
$scope.appRestore.error.location = 'This name is already taken.';
$scope.appCloneForm.location.$setPristine();
$('#appRestoreLocationInput').focus();
} else {
Client.error(error);
}
} else {
$('#appRestoreModal').modal('hide');
return;
}
$('#appRestoreModal').modal('hide');
Client.refreshAppCache(clonedApp.id); // reflect the new app state immediately
});