projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RIFT-16858: Launchpad Viewport VNFD: Volumes tab does not list all volumes
[osm/UI.git]
/
skyquake
/
plugins
/
launchpad
/
src
/
recordViewer
/
recordCard.jsx
diff --git
a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx
b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx
index
ea3eb2f
..
ddb4779
100644
(file)
--- a/
skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx
+++ b/
skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx
@@
-143,10
+143,12
@@
export default class RecordCard extends React.Component {
function buildProperties(obj) {
let p = [];
_forEach(obj, function(v, k) {
function buildProperties(obj) {
let p = [];
_forEach(obj, function(v, k) {
+ if (!v) {
+ return null;
+ }
p.push(
<div style={{margin: '0.5rem 0.5rem'}} key={k + '-' + vi}>
p.push(
<div style={{margin: '0.5rem 0.5rem'}} key={k + '-' + vi}>
- <div style={{margin: '0 0.5rem',
- fontWeight: 'bold', textTransform: 'uppercase', color: '#5b5b5b'}}>{k}</div>
+ <div style={{margin: '0 0.5rem', fontWeight: 'bold', textTransform: 'uppercase', color: '#5b5b5b'}}>{k}</div>
<div style={{margin: '0 0.5rem'}}>{(v.constructor.name == 'String' || v.constructor.name == 'Number') ? v : buildProperties(v)}</div>
</div>
)
<div style={{margin: '0 0.5rem'}}>{(v.constructor.name == 'String' || v.constructor.name == 'Number') ? v : buildProperties(v)}</div>
</div>
)
@@
-154,9
+156,9
@@
export default class RecordCard extends React.Component {
return p;
}
volumesHTML.push(
return p;
}
volumesHTML.push(
- <div key={vi}>
+ <div key={
index +
vi}>
<div className="launchpadCard_title">
<div className="launchpadCard_title">
- VOLUME
+ VOLUME
({vdur['name']})
</div>
<div style={{display: 'flex', flexDirection: 'column'}}>
{
</div>
<div style={{display: 'flex', flexDirection: 'column'}}>
{
@@
-369,11
+371,11
@@
export default class RecordCard extends React.Component {
consoleUrlsTabTitle = 'VDU Console Links';
tabList.push(
consoleUrlsTabTitle = 'VDU Console Links';
tabList.push(
- <Tab key={cardData.id + '-
cp
'}>{consoleUrlsTabTitle}</Tab>
+ <Tab key={cardData.id + '-
vducl
'}>{consoleUrlsTabTitle}</Tab>
);
tabPanels.push(
);
tabPanels.push(
- <TabPanel key={cardData.id + '-
cp
-panel'}>
+ <TabPanel key={cardData.id + '-
vducl
-panel'}>
<div className="consoleUrls">
{consoleUrlsComponent}
</div>
<div className="consoleUrls">
{consoleUrlsComponent}
</div>