Allow project dependencies to be edited in dialog

This commit is contained in:
Nick O'Leary
2017-09-21 11:19:24 +01:00
parent edc2310599
commit d8fd218409
4 changed files with 217 additions and 13 deletions

View File

@@ -85,9 +85,7 @@ module.exports = {
req.body.hasOwnProperty('dependencies')||
req.body.hasOwnProperty('summary')) {
runtime.storage.projects.updateProject(req.params.id, req.body).then(function() {
setTimeout(function() {
res.redirect(303,req.baseUrl + '/');
},5000);
res.redirect(303,req.baseUrl + '/');
}).otherwise(function(err) {
if (err.code) {
res.status(400).json({error:err.code, message: err.message});