# HG changeset patch # User drewp@bigasterisk.com # Date 2023-05-30 06:37:08 # Node ID 0a11698fecc4627b29c7eb578a3809d00fbb7bd6 # Parent 1281b46778623b3f833a826ee95412687e4d7cb7 look who just read https://lit.dev/docs/components/properties/#boolean-attributes diff --git a/light9/homepage/ServiceButtonRow.ts b/light9/homepage/ServiceButtonRow.ts --- a/light9/homepage/ServiceButtonRow.ts +++ b/light9/homepage/ServiceButtonRow.ts @@ -5,7 +5,7 @@ export { StatsLine } from "./StatsLine"; @customElement("service-button-row") export class ServiceButtonRow extends LitElement { @property() name: string = "?"; - @property({ attribute: "metrics" }) hasMetrics: boolean = false; + @property({ type:Boolean, attribute: "metrics" }) hasMetrics: boolean = false; static styles = [ css` :host { diff --git a/light9/web/ResourceDisplay.ts b/light9/web/ResourceDisplay.ts --- a/light9/web/ResourceDisplay.ts +++ b/light9/web/ResourceDisplay.ts @@ -76,8 +76,9 @@ export class ResourceDisplay extends Lit @property() uri?: NamedNode | string; @state() label: string = ""; - @property() rename: boolean = false; - @property() minor: boolean = false; + + @property({type: Boolean}) rename: boolean = false; + @property({type: Boolean}) minor: boolean = false; // @state() renameTo: String; notify: true }; constructor() {