millayr commented on a change in pull request #923: Clean up Auth section
URL: https://github.com/apache/couchdb-fauxton/pull/923#discussion_r119730329
 
 

 ##########
 File path: app/addons/auth/actions.js
 ##########
 @@ -10,148 +10,157 @@
 // License for the specific language governing permissions and limitations 
under
 // the License.
 import FauxtonAPI from "../../core/api";
-import ActionTypes from "./actiontypes";
+import app from "../../app";
 import ClusterStore from "../cluster/cluster.stores";
+import ActionTypes from './actiontypes';
+import Api from './api';
 
-var nodesStore = ClusterStore.nodesStore;
+const {
+  AUTH_PASSWORD_UPDATED,
+  AUTH_SHOW_PASSWORD_MODAL,
+  AUTH_HIDE_PASSWORD_MODAL,
+  AUTH_ADMIN_CREATED
+} = ActionTypes;
 
-var errorHandler = function (xhr, type, msg) {
-  msg = xhr;
-  if (arguments.length === 3) {
-    msg = xhr.responseJSON.reason;
-  }
+const nodesStore = ClusterStore.nodesStore;
 
+function errorHandler({ message }) {
 
 Review comment:
   Consider arrow function style here
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to