Sergiu Miclea 8 лет назад
Родитель
Сommit
62d7ad4285

+ 1 - 2
src/components/LoginPage/LoginPage.js

@@ -25,7 +25,7 @@ import UserStore from '../../stores/UserStore';
 import NotificationActions from '../../actions/NotificationActions';
 import LoadingIcon from '../LoadingIcon';
 import withViewport from '../withViewport.js';
-import {loginButtons} from '../../config.js';
+import { loginButtons } from '../../config.js';
 
 const title = 'Log In';
 const coriolisTextSvg = `
@@ -74,7 +74,6 @@ const footerLogoSvg = `
         </g>
     </g>
 </svg>`
-const origin = ""
 
 export class LoginPage extends Reflux.Component {
 

+ 5 - 2
src/components/ReplicaList/ReplicaList.js

@@ -111,7 +111,7 @@ class ReplicaList extends Reflux.Component {
     if (count == 0) {
       tasksRemaining = "-"
     }
-    
+
     return (
       <div className={"item " + (item.selected ? "selected" : "")} key={"replica_" + item.id}>
         <span className="cell cell-icon" onClick={(e) => this.replicaDetail(e, item)}>
@@ -129,7 +129,10 @@ class ReplicaList extends Reflux.Component {
         <span className={"cell " + s.composite} onClick={(e) => this.replicaDetail(e, item)}>
           <span className={s.label}>Last execution</span>
           <span className={s.value}>
-            {item.lastExecution ? <Moment format="MMM Do YYYY HH:mm" date={Helper.getTimeObject(item.lastExecution)} /> : "-"}
+            {
+              item.lastExecution ?
+                <Moment format="MMM Do YYYY HH:mm" date={Helper.getTimeObject(item.lastExecution)} /> : "-"
+            }
           </span>
         </span>
         <span className={"cell " + s.composite} onClick={(e) => this.replicaDetail(e, item)}>

+ 3 - 3
src/components/Table/Table.js

@@ -63,12 +63,12 @@ class Table extends Component {
   }
 
   rowMouseDown(e) {
-    this.dragStartPosition = {x: e.screenX, y: e.screenY};
+    this.dragStartPosition = { x: e.screenX, y: e.screenY };
   }
 
   rowMouseUp(e, index) {
-    this.dragStartPosition = this.dragStartPosition || {x: e.screenX, y: e.screenY};
-   
+    this.dragStartPosition = this.dragStartPosition || { x: e.screenX, y: e.screenY };
+
     // If a drag operation has been initiated (i.e. text selection), don't call toggleDrawer
     if (Math.abs(this.dragStartPosition.x - e.screenX) < 3 && Math.abs(this.dragStartPosition.y - e.screenY) < 3) {
       this.toggleDrawer(index);

+ 1 - 1
src/components/WizardNetworks/WizardNetworks.js

@@ -105,7 +105,7 @@ class WizardNetworks extends Component {
     }
     if (props.data.targetNetworks && props.data.targetNetworks.length) {
       this.networkOptions = []
-      
+
       let targetNetworks = props.data.targetNetworks
       targetNetworks.sort((a, b) => a.name > b.name)