Skip to content

Commit

Permalink
MB-12222: added "select a bucket" message in create xdcr dialog
Browse files Browse the repository at this point in the history
Change-Id: Id607885c23535113ef0dfa904811db5479903bdc
Reviewed-on: http://review.couchbase.org/59047
Reviewed-by: Dave Finlay <dave.finlay@couchbase.com>
Tested-by: Dave Finlay <dave.finlay@couchbase.com>
  • Loading branch information
pavel-blagodov authored and dave-finlay committed Feb 5, 2016
1 parent 91a4d79 commit 75d9277
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -22,6 +22,9 @@ <h1>Create Replication</h1>
id="replication_from_bucket"
style="width: 154px;"
ng-options="bucket.name as bucket.name for bucket in xdcrCreateDialogCtl.buckets">
<option value="" disabled selected style="display: none;">
select a bucket
</option>
</select>
<span
class="error error-container err-fromBucket"
Expand Down
Expand Up @@ -14,7 +14,9 @@
vm.replication.replicationType = "continuous";
vm.replication.type = "xmem";
vm.buckets = buckets.byType.membase;
vm.replication.fromBucket = vm.buckets[0].name;
if (vm.buckets[0]) {
vm.replication.fromBucket = vm.buckets[0].name;
}
vm.advancedFiltering = mnRegexService.getProperties();
vm.createReplication = createReplication;

Expand Down

0 comments on commit 75d9277

Please sign in to comment.