Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HAWKULAR-553 Additional condition to skip adding invalid URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Viliam Rockai committed Aug 14, 2015
1 parent ffbea21 commit 9ce7c9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions console/src/main/scripts/plugins/metrics/ts/urlList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ module HawkularMetrics {
}

public addUrl(url:string):void {

if (this.$scope.addUrlForm.$invalid) {
return;
}

this.addProgress = true;

var resourceId = this.md5.createHash(url || '');
Expand Down

0 comments on commit 9ce7c9a

Please sign in to comment.