Skip to content

Commit

Permalink
Merge pull request #291 from cockroachdb/andybons/counter
Browse files Browse the repository at this point in the history
rest ui: use default value instead of confusing placeholder
  • Loading branch information
andybons committed Jan 26, 2015
2 parents c3ada9f + b9413b2 commit 7d50d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/js/controllers/rest_explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
var crApp = angular.module('cockroach');
crApp.controller('RestExplorerCtrl', ['$scope', '$http',
function(scope, http) {
scope.kvCounterVal = 0;
scope.responseLog = [];
scope.clearResponseLog = function(e) {
scope.responseLog = [];
Expand Down
2 changes: 1 addition & 1 deletion ui/templates/rest_explorer.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h3>Counter</h3>
<form>
<input type="text" ng-model="kvKey" ng-disabled="responsePending" placeholder="Key">
&rarr;
<input type="number" ng-model="kvCounterVal" ng-disabled="responsePending" placeholder="0">
<input type="number" ng-model="kvCounterVal" ng-disabled="responsePending">
<input type="button" ng-click="handleClick($event)" ng-disabled="responsePending" value="Get" data-endpoint="/kv/rest/counter/" data-method="GET">
<input type="button" ng-click="handleClick($event)" ng-disabled="responsePending" value="Head" data-endpoint="/kv/rest/counter/" data-method="HEAD">
<input type="button" ng-click="handleClick($event)" ng-disabled="responsePending" value="Post" data-endpoint="/kv/rest/counter/" data-method="POST">
Expand Down

0 comments on commit 7d50d33

Please sign in to comment.