Skip to content

Commit

Permalink
feat: support visiblity in child card. fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosabot committed Aug 26, 2024
1 parent 2ab5785 commit 9c599d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/streamline-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ import { version } from "../package.json";
updateCardConfig() {
if (this._isConnected && this._card && this._config) {
this._card.setConfig?.(this._config);

if (this._config.visibility) {
this.parentNode.config = {
...this.parentNode.config,
visibility: this._config.visibility,
};
}
}
}

Expand Down

0 comments on commit 9c599d5

Please sign in to comment.