Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

User story view detail fixed #81

Merged
merged 2 commits into from
Feb 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/UserStory/sections/UserStoryGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class UserStoryView extends React.Component {
border: '0'
}

if(this.props.graph.type === 'TextWidget')
if(this.props.graph.props.wid_key.indexOf('TextWidget')!=-1)
return(
<div className="u-margin-r-top u-padding-r-top" dangerouslySetInnerHTML={{ __html: this.props.graph.props.text }}></div>
)
Expand Down
11 changes: 3 additions & 8 deletions src/components/UserStory/sections/UserStoryImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class UserStoryImage extends React.Component {
width: '100%'
}

if (this.props.graph.type === 'TextWidget')
if (this.props.graph.props.wid_key.indexOf('TextWidget') != -1)
return (
<div className="u-margin-r-top u-padding-r-top" dangerouslySetInnerHTML={{ __html: this.props.graph.props.text }}></div>
)
Expand All @@ -59,13 +59,8 @@ class UserStoryImage extends React.Component {
? <iframe className="u-margin-r-top u-padding-r-top" src=""></iframe>
: this.state.loading === true ? <p>Caricamento ...</p> : (
<div className="text-center u-margin-r-top u-padding-r-top">
{
this.props.story &&
<div>
{this.state.imageSrc &&
<img style={imgStyle} src={"data:image/jpg;" + base64Icon} />
}
</div>
{this.state.imageSrc &&
<img style={imgStyle} src={"data:image/jpg;" + base64Icon} />
}
</div>
);
Expand Down