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

Commit

Permalink
add option to remove border from embedded panel
Browse files Browse the repository at this point in the history
Signed-off-by: David Sinclair <david@sinclair.tech>
  • Loading branch information
sikhote committed Apr 24, 2023
1 parent 5cd5e57 commit 9b15430
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config/opensearch_dashboards.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
opensearch.hosts: ["https://localhost:9200"]
opensearch.username: "admin" # Default username on the docker image
opensearch.password: "admin" # Default password on the docker image
opensearch.ssl.verificationMode: none

# OpenSearch Dashboards is served by a back end server. This setting specifies the port to use.
#server.port: 5601

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dashboarding"
],
"private": true,
"version": "3.0.0",
"version": "2.3.0",
"branch": "main",
"types": "./opensearch_dashboards.d.ts",
"tsdocMetadata": "./build/tsdoc-metadata.json",
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/embeddable/public/lib/panel/embeddable_panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ interface Props {
stateTransfer?: EmbeddableStateTransfer;
hideHeader?: boolean;
isRetained?: boolean;
isBorderless?: boolean;
}

interface State {
Expand Down Expand Up @@ -238,6 +239,8 @@ export class EmbeddablePanel extends React.Component<Props, State> {
paddingSize="none"
role="figure"
aria-labelledby={headerId}
hasBorder={!this.props.isBorderless}
hasShadow={!this.props.isBorderless}
>
{!this.props.hideHeader && (
<PanelHeader
Expand Down

0 comments on commit 9b15430

Please sign in to comment.