Skip to content
This repository
Browse code

Use Url as Check name when left empty

Closes #88
  • Loading branch information...
commit d18fccce964a0319b1a6e1c3bdc7b90e7fcb5a11 1 parent 1c8812b
Francois Zaninotto authored January 15, 2013

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  app/dashboard/app.js
3  app/dashboard/app.js
@@ -105,6 +105,9 @@ app.get('/checks/:id/edit', function(req, res, next) {
105 105
 
106 106
 app.put('/checks/:id', function(req, res, next) {
107 107
   var check = req.body.check;
  108
+  if (!check.name) {
  109
+    check.name = check.url;
  110
+  }
108 111
   check.tags = Check.convertTags(check.tags);
109 112
   check.interval = req.body.check.interval * 1000;
110 113
   check.type = Check.guessType(check.url);

0 notes on commit d18fccc

Please sign in to comment.
Something went wrong with that request. Please try again.