blob: a53f695b6cf96859e40a5a2749b416a744bc3142 [file] [log] [blame]
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.
function (app, FauxtonAPI, React, ClusterStore) {
var nodesStore = ClusterStore.nodesStore;
var DisabledConfigController = React.createClass({
getStoreState: function () {
return {
nodes: nodesStore.getNodes()
getInitialState: function () {
return this.getStoreState();
componentDidMount: function () {
nodesStore.on('change', this.onChange, this);
componentWillUnmount: function () {'change', this.onChange);
onChange: function () {
render: function () {
return (
<div className="config-warning-cluster-wrapper">
<div className="config-warning-cluster-container">
<div className="config-warning-icon-container pull-left">
<i className="fonticon-attention-circled"></i>
It seems that you are running a cluster with {this.state.nodes.length} nodes. For CouchDB 2.0
we recommend using a configuration management tools like Chef, Ansible,
Puppet or Salt (in no particular order) to configure your nodes in a cluster.
<div className="config-warning-other-text">
We highly recommend against configuring nodes in your cluster using the HTTP API and
suggest using a configuration management tool for all configurations.
var Views = {
DisabledConfigController: DisabledConfigController
return Views;