1+ import { Container , Segment , Message } from 'semantic-ui-react' ;
12import React , { Component } from 'react' ;
23import ReactTimeout from 'react-timeout' ;
3- import DeploymentOperator from './deployment/DeploymentOperator.js' ;
4- import StorageOperator from './storage/StorageOperator.js' ;
5- import NoOperator from './NoOperator.js' ;
6- import Loading from './util/Loading.js' ;
7- import api , { isUnauthorized } from './api/api.js' ;
8- import { Container , Segment , Message } from 'semantic-ui-react' ;
9- import { withAuth } from './auth/Auth.js' ;
4+
5+ import { withAuth } from './auth/Auth' ;
6+ import api , { isUnauthorized } from './api/api' ;
7+ import DeploymentOperator from './deployment/DeploymentOperator' ;
8+ import DeploymentReplicationOperator from './replication/DeploymentReplicationOperator' ;
9+ import Loading from './util/Loading' ;
10+ import NoOperator from './NoOperator' ;
11+ import StorageOperator from './storage/StorageOperator' ;
1012
1113const PodInfoView = ( { pod, namespace} ) => (
1214 < Segment basic >
@@ -17,10 +19,12 @@ const PodInfoView = ({pod, namespace}) => (
1719 </ Segment >
1820) ;
1921
20- const OperatorsView = ( { error, deployment, storage, pod, namespace} ) => {
22+ const OperatorsView = ( { error, deployment, deploymentReplication , storage, pod, namespace} ) => {
2123 let Operator = NoOperator ;
2224 if ( deployment )
2325 Operator = DeploymentOperator ;
26+ else if ( deploymentReplication )
27+ Operator = DeploymentReplicationOperator ;
2428 else if ( storage )
2529 Operator = StorageOperator ;
2630 return (
@@ -70,6 +74,7 @@ class App extends Component {
7074 return < OperatorsView
7175 error = { this . state . error }
7276 deployment = { this . state . operators . deployment }
77+ deploymentReplication = { this . state . operators . deployment_replication }
7378 storage = { this . state . operators . storage }
7479 pod = { this . state . operators . pod }
7580 namespace = { this . state . operators . namespace }
0 commit comments