3 * Copyright 2016 RIFT.IO Inc
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 import React from 'react';
19 import LoadingIndicator from 'widgets/loading-indicator/loadingIndicator.jsx';
20 import DashboardCard from 'widgets/dashboard_card/dashboard_card.jsx';
21 import Listy from 'widgets/listy/listy.js';
23 import _isEmpty from 'lodash/isEmpty';
25 export default class TopologyDetail extends React.Component {
36 full_name: data['full_name'],
37 network: data['network'],
44 let text = JSON.stringify(data, undefined, 2);
49 <div className="topologyDebugRawJSON">
51 <pre className="language.js">{text}</pre>
59 <DashboardCard showHeader={true} title="Record Details" className={'recordDetails'}>
60 <div className="nodeAttr">
61 <Listy data={this.detailData(this.props.data)}
62 noDataMessage={"Select a node"}
63 debugMode={this.props.debugMode}
67 (this.props.debugMode)
68 ? this.rawDetails(this.props.data)
76 TopologyDetail.propTypes = {
77 debugMode: React.PropTypes.bool
80 TopologyDetail.defaultProps = {