Tidy up project first-run experience

This commit is contained in:
Nick O'Leary
2018-01-23 11:26:05 +00:00
parent 1337831061
commit cf34716a57
2 changed files with 32 additions and 23 deletions

View File

@@ -862,6 +862,11 @@ function createProject(user, metadata) {
}
createProjectDirectory(project).then(function() {
var projects = settings.get('projects');
if (!projects) {
projects = {
projects:{}
}
}
projects.projects[project] = {};
if (metadata.hasOwnProperty('credentialSecret')) {
projects.projects[project].credentialSecret = metadata.credentialSecret;