Permalink
Browse files

Use Url as Check name when left empty

Closes #88
  • Loading branch information...
1 parent 1c8812b commit d18fccce964a0319b1a6e1c3bdc7b90e7fcb5a11 @fzaninotto committed Jan 15, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/dashboard/app.js
View
3 app/dashboard/app.js
@@ -105,6 +105,9 @@ app.get('/checks/:id/edit', function(req, res, next) {
app.put('/checks/:id', function(req, res, next) {
var check = req.body.check;
+ if (!check.name) {
+ check.name = check.url;
+ }
check.tags = Check.convertTags(check.tags);
check.interval = req.body.check.interval * 1000;
check.type = Check.guessType(check.url);

0 comments on commit d18fccc

Please sign in to comment.