Skip to content

Commit

Permalink
Check creation via dashboard fall backs to url if no name is provided
Browse files Browse the repository at this point in the history
Closes #24.
  • Loading branch information
fzaninotto committed Jul 27, 2012
1 parent d95e03f commit 024a762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/dashboard/app.js
Expand Up @@ -68,6 +68,7 @@ app.get('/checks/new', function(req, res) {

app.post('/checks', function(req, res) {
var check = new Check(req.body.check);
check.name = check.name || check.url;
check.tags = Check.convertTags(req.body.check.tags);
check.interval = req.body.check.interval * 1000;
check.type = Check.guessType(check.url);
Expand Down

0 comments on commit 024a762

Please sign in to comment.