mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
Fixing explore actions & slice controller interactions (#1292)
* Fixing explore actions & slice controller interactions * Addressing a comment
This commit is contained in:
committed by
GitHub
parent
382b8e85da
commit
3384e7598e
@@ -12,7 +12,6 @@ export default class EmbedCodeButton extends React.Component {
|
||||
this.state = {
|
||||
height: '400',
|
||||
width: '600',
|
||||
srcLink: window.location.origin + props.slice.data.standalone_endpoint,
|
||||
};
|
||||
this.handleInputChange = this.handleInputChange.bind(this);
|
||||
}
|
||||
@@ -26,11 +25,15 @@ export default class EmbedCodeButton extends React.Component {
|
||||
}
|
||||
|
||||
generateEmbedHTML() {
|
||||
const { width, height, srcLink } = this.state;
|
||||
const srcLink = window.location.origin + this.props.slice.data.standalone_endpoint;
|
||||
/* eslint max-len: 0 */
|
||||
const embedHTML =
|
||||
`<iframe src="${srcLink}" width="${width}" height="${height}" seamless frameBorder="0" scrolling="no"></iframe>`;
|
||||
return embedHTML;
|
||||
return `
|
||||
<iframe
|
||||
src="${srcLink}"
|
||||
width="${this.state.width}"
|
||||
height="${this.state.height}"
|
||||
seamless frameBorder="0" scrolling="no">
|
||||
</iframe>`;
|
||||
}
|
||||
|
||||
renderPopover() {
|
||||
|
||||
Reference in New Issue
Block a user